Skip to content
Snippets Groups Projects
Unverified Commit 87d4a77a authored by boklm's avatar boklm
Browse files

Bug 40036: Avoid some calls to lsb_release

parent adb7dcab
Branches bug_40036
No related tags found
No related merge requests found
......@@ -28,14 +28,16 @@ tar::
set to +timestamp+. This option takes a +tar_src+ argument which
is an array containing source files or directories, and a +tar_args+
argument which is the tar arguments to create the file (something
like '-cf filename.tar').
like '-cf filename.tar'). By default, GNU options are used in
tar and find, but you can disable that with +gnu_utils+.
zip::
Use this option instead of 'zip' in build scripts when you want
to create deterministic zip files. This option takes a +zip_src+
argument which is an array containing source files or directories,
and a +zip_args+ arguments which is usually the destination zip
file, and optionaly other zip options.
file, and optionaly other zip options. By default, GNU options
are used in find, but you can disable that with +gnu_utils+.
install_package::
This option can be used in a script when you need to install a
......
......@@ -412,18 +412,7 @@ mv -f "\$tmpfile" [% shell_quote(dest_dir _ "/" _ c("filename")) %]
URLGET
sig_ext => [ qw(gpg asc sig) ],
enable => 1,
gnu_utils => sub {
my ($project, $options) = @_;
my $distro = RBM::project_config($project, 'lsb_release/id', $options);
my %non_gnu = (
'Mac OS X' => 1,
NetBSD => 1,
OpenBSD => 1,
FreeBSD => 1,
DragonFly => 1,
);
return ! $non_gnu{$distro};
},
gnu_utils => 1,
tar => <<TAR_END,
[%- SET src = c('tar_src', { error_if_undef => 1 }) -%]
find [% src.join(' ') %] [% IF c('gnu_utils') %]-executable[% ELSE %]-perm +0111[% END %] -exec chmod 700 {} \\;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment