diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-10 13:44:12 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-01-10 13:44:12 +0000 |
commit | 5610b6b6092e454fa43f095c748d141c821222dc (patch) | |
tree | 9743884cdbe21dc4c732f8ffb13c297f59706e08 /perl-install/do_pkgs.pm | |
parent | 4b2ecaa18e1cc00e741be716f5043f656f3b462e (diff) | |
download | drakx-5610b6b6092e454fa43f095c748d141c821222dc.tar drakx-5610b6b6092e454fa43f095c748d141c821222dc.tar.gz drakx-5610b6b6092e454fa43f095c748d141c821222dc.tar.bz2 drakx-5610b6b6092e454fa43f095c748d141c821222dc.tar.xz drakx-5610b6b6092e454fa43f095c748d141c821222dc.zip |
Add --expect-install to the options passed to urpmi to install packages, so
do_pkgs::install() can return 0 or true depending on whether some packages were
actually installed.
Diffstat (limited to 'perl-install/do_pkgs.pm')
-rw-r--r-- | perl-install/do_pkgs.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm index 864c8dac9..bf48c081d 100644 --- a/perl-install/do_pkgs.pm +++ b/perl-install/do_pkgs.pm @@ -172,7 +172,8 @@ sub install { my $_wait = $do->in->wait_message('', N("Installing packages...")); $do->in->suspend; log::explanations("installed packages @l"); - my $ret = system('urpmi', '--allow-medium-change', '--auto', '--no-verify-rpm', @l) == 0; + #- --expect-install added in urpmi 4.6.11 + my $ret = system('urpmi', '--allow-medium-change', '--auto', '--no-verify-rpm', '--expect-install', @l) == 0; $do->in->resume; $ret; } |