summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-08-18 15:01:56 +0000
committerOlivier Blin <oblin@mandriva.com>2008-08-18 15:01:56 +0000
commit75bbbb30528e9efa7759c1590ad8fcdbdd85148e (patch)
treeaff73f7192e8b40cbd33123651fcb0f767a01c1a /perl-install/pkgs.pm
parent07a5a611fd36f268d32eafe57c3b586e85e51181 (diff)
downloaddrakx-75bbbb30528e9efa7759c1590ad8fcdbdd85148e.tar
drakx-75bbbb30528e9efa7759c1590ad8fcdbdd85148e.tar.gz
drakx-75bbbb30528e9efa7759c1590ad8fcdbdd85148e.tar.bz2
drakx-75bbbb30528e9efa7759c1590ad8fcdbdd85148e.tar.xz
drakx-75bbbb30528e9efa7759c1590ad8fcdbdd85148e.zip
remove useless isStandalone checks (we already check isInstall in one case, and the return values won't hurt)
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index be139d6c5..845c2aa58 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -132,12 +132,12 @@ sub read_rpmsrate {
if ($::isInstall) {
$p->set_rate($rates->{$_});
$p->set_rflags(member('FALSE', @flags) ? 'FALSE' : @flags);
- } elsif ($::isStandalone) {
+ } else {
$flags->{$_} = \@flags;
}
}
push @{$packages->{needToCopy} ||= []}, @$need_to_copy if ref($packages);
- return ($rates, $flags) if $::isStandalone;
+ return ($rates, $flags);
}