diff options
| author | Pascal Terjan <pterjan@mageia.org> | 2012-03-11 23:54:09 +0000 | 
|---|---|---|
| committer | Pascal Terjan <pterjan@mageia.org> | 2012-03-11 23:54:09 +0000 | 
| commit | e480bd5ef56ce52442aa1330a30f03fbf04ff2f9 (patch) | |
| tree | 74c23fcbf656b7145c6d33bc02819c7281c66144 | |
| parent | e90b0acc99db5067807cfbd9c6c2e973f979c118 (diff) | |
| download | iurt-e480bd5ef56ce52442aa1330a30f03fbf04ff2f9.tar iurt-e480bd5ef56ce52442aa1330a30f03fbf04ff2f9.tar.gz iurt-e480bd5ef56ce52442aa1330a30f03fbf04ff2f9.tar.bz2 iurt-e480bd5ef56ce52442aa1330a30f03fbf04ff2f9.tar.xz iurt-e480bd5ef56ce52442aa1330a30f03fbf04ff2f9.zip | |
Do not use --buildrequires for non src rpms
| -rw-r--r-- | lib/Iurt/Urpmi.pm | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index e6ae935..6923b91 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -464,8 +464,11 @@ sub install_packages {      plog('INFO', "install dependencies using urpmi"); +    my @options; +    push @options, '--buildrequires' unless @rpm; +      if (!perform_command( -	    join(' ', $self->{urpmi_command}, '--buildrequires', @to_install),  +	    join(' ', $self->{urpmi_command}, @options, @to_install),  	    $run, $config, $cache,  	    use_iurt_root_command => $self->{use_iurt_root_command},  	    error => $error, | 
