diff options
author | Francois Pons <fpons@mandriva.com> | 2000-09-13 16:09:09 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-09-13 16:09:09 +0000 |
commit | 10fcc5bad47867583aa19f031d870fac200a0c6d (patch) | |
tree | e9c5c21c42a56bbec59bfc72e045f72d96a2dced /perl-install/install_steps.pm | |
parent | 42ae5ba168e210dfbabf3281a3159c1539f1601e (diff) | |
download | drakx-10fcc5bad47867583aa19f031d870fac200a0c6d.tar drakx-10fcc5bad47867583aa19f031d870fac200a0c6d.tar.gz drakx-10fcc5bad47867583aa19f031d870fac200a0c6d.tar.bz2 drakx-10fcc5bad47867583aa19f031d870fac200a0c6d.tar.xz drakx-10fcc5bad47867583aa19f031d870fac200a0c6d.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r-- | perl-install/install_steps.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 616c28b4b..6e36e3787 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -303,8 +303,13 @@ sub pkg_install { log::l("selecting packages"); require pkgs; pkgs::selectPackage($o->{packages}, pkgs::packageByName($o->{packages}, $_) || die "$_ rpm not found") foreach @l; - log::l("installing packages"); - $o->installPackages; + my @toInstall = pkgs::packagesToInstall($o->{packages}); + if (@toInstall) { + log::l("installing packages"); + $o->installPackages; + } else { + log::l("all packages selected are already installed, nothing to do") + } } sub pkg_install_if_requires_satisfied { |