From e480bd5ef56ce52442aa1330a30f03fbf04ff2f9 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sun, 11 Mar 2012 23:54:09 +0000 Subject: Do not use --buildrequires for non src rpms --- lib/Iurt/Urpmi.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Iurt/Urpmi.pm') 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, -- cgit v1.2.1