summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-09-01 12:48:47 +0000
committerFrancois Pons <fpons@mandriva.com>2000-09-01 12:48:47 +0000
commitd2118727c8d024d96621cb1eb418958d870495fb (patch)
treeaefebcfee4d79cab13753c04201f70324144fbb9 /perl-install/install_steps.pm
parent05eadd2040d27930be0d2cfa440f263e54af720b (diff)
downloaddrakx-d2118727c8d024d96621cb1eb418958d870495fb.tar
drakx-d2118727c8d024d96621cb1eb418958d870495fb.tar.gz
drakx-d2118727c8d024d96621cb1eb418958d870495fb.tar.bz2
drakx-d2118727c8d024d96621cb1eb418958d870495fb.tar.xz
drakx-d2118727c8d024d96621cb1eb418958d870495fb.zip
*** empty log message ***
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 28eea781c..a883ace2b 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -305,9 +305,7 @@ sub pkg_install_if_requires_satisfied {
my %newSelection;
my $pkg = pkgs::packageByName($o->{packages}, $_) || die "$_ rpm not found";
pkgs::selectPackage($o->{packages}, $pkg, 0, \%newSelection) foreach @l;
- if (scalar(keys %newSelection) == 1) {
- pkgs::selectPackage($o->{packages}, $pkg);
- }
+ scalar(keys %newSelection) == 1 and pkgs::selectPackage($o->{packages}, $pkg);
}
$o->installPackages;
}