aboutsummaryrefslogtreecommitdiffstats
path: root/rpmbuildupdate
diff options
context:
space:
mode:
authorMichael Scherer <misc@mandriva.com>2005-12-16 16:43:33 +0000
committerMichael Scherer <misc@mandriva.com>2005-12-16 16:43:33 +0000
commit2c01973e3d81c9925d6fdb4f0c7d040ff05b66ba (patch)
tree52ac1dbaa9302fa8ce64a28faf1ed0bd391b529d /rpmbuildupdate
parent1ed4dbbbcaf53910e526b9257ca495851b4e86a3 (diff)
downloadbootsplash-2c01973e3d81c9925d6fdb4f0c7d040ff05b66ba.tar
bootsplash-2c01973e3d81c9925d6fdb4f0c7d040ff05b66ba.tar.gz
bootsplash-2c01973e3d81c9925d6fdb4f0c7d040ff05b66ba.tar.bz2
bootsplash-2c01973e3d81c9925d6fdb4f0c7d040ff05b66ba.tar.xz
bootsplash-2c01973e3d81c9925d6fdb4f0c7d040ff05b66ba.zip
- do not try to install '(none)' as buildRequires, and do not run the script if
nothing need to be installed.
Diffstat (limited to 'rpmbuildupdate')
-rwxr-xr-xrpmbuildupdate8
1 files changed, 5 insertions, 3 deletions
diff --git a/rpmbuildupdate b/rpmbuildupdate
index adb5f78..23d885d 100755
--- a/rpmbuildupdate
+++ b/rpmbuildupdate
@@ -217,9 +217,11 @@ sub build {
if ( $config{installbuildrequires} ) {
my @requires = split(/\s+/, $hdlist_spec->srcheader->queryformat("[%{requires} ]"));
- print "===> Installing BuildRequires : @requires\n";
-
- system("$config{installbuildrequires} " . shell_quote @requires);
+ @requires = grep { $_ ne '(none)' } @requires;
+ if (@requires) {
+ print "===> Installing BuildRequires : @requires\n";
+ system("$config{installbuildrequires} " . shell_quote @requires);
+ }
};
if (! defined($newversion)) {