diff options
author | Michael Scherer <misc@mandriva.com> | 2005-12-16 16:43:33 +0000 |
---|---|---|
committer | Michael Scherer <misc@mandriva.com> | 2005-12-16 16:43:33 +0000 |
commit | 2c01973e3d81c9925d6fdb4f0c7d040ff05b66ba (patch) | |
tree | 52ac1dbaa9302fa8ce64a28faf1ed0bd391b529d | |
parent | 1ed4dbbbcaf53910e526b9257ca495851b4e86a3 (diff) | |
download | bootsplash-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.
-rwxr-xr-x | rpmbuildupdate | 8 |
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)) { |