aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Urpmi.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-03-11 23:54:09 +0000
committerPascal Terjan <pterjan@mageia.org>2012-03-11 23:54:09 +0000
commite480bd5ef56ce52442aa1330a30f03fbf04ff2f9 (patch)
tree74c23fcbf656b7145c6d33bc02819c7281c66144 /lib/Iurt/Urpmi.pm
parente90b0acc99db5067807cfbd9c6c2e973f979c118 (diff)
downloadiurt-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
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r--lib/Iurt/Urpmi.pm5
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,