Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RBM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
boklm
RBM
Commits
87d4a77a
Unverified
Commit
87d4a77a
authored
3 years ago
by
boklm
Browse files
Options
Downloads
Patches
Plain Diff
Bug 40036: Avoid some calls to lsb_release
parent
adb7dcab
Branches
bug_40036
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/options_misc.asc
+4
-2
4 additions, 2 deletions
doc/options_misc.asc
lib/RBM/DefaultConfig.pm
+1
-12
1 addition, 12 deletions
lib/RBM/DefaultConfig.pm
with
5 additions
and
14 deletions
doc/options_misc.asc
+
4
−
2
View file @
87d4a77a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
lib/RBM/DefaultConfig.pm
+
1
−
12
View file @
87d4a77a
...
...
@@ -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
{}
\\
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment