diff options
Diffstat (limited to 'rpmbuildupdate')
-rwxr-xr-x | rpmbuildupdate | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rpmbuildupdate b/rpmbuildupdate index ac7f7fd..adb5f78 100755 --- a/rpmbuildupdate +++ b/rpmbuildupdate @@ -35,6 +35,7 @@ use Cwd; use File::Spec; use File::Path; use RPM4; +use String::ShellQuote; my %config; @@ -218,7 +219,7 @@ sub build { my @requires = split(/\s+/, $hdlist_spec->srcheader->queryformat("[%{requires} ]")); print "===> Installing BuildRequires : @requires\n"; - system("$config{installbuildrequires} @requires"); + system("$config{installbuildrequires} " . shell_quote @requires); }; if (! defined($newversion)) { @@ -456,7 +457,7 @@ sub build { -f $_ or next; push(@rpms_upload, $_); } - system("$config{execafterbuild} @rpms_upload"); + system("$config{execafterbuild} " . shell_quote @rpms_upload); } } |