aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-19 12:19:32 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-19 12:19:32 +0000
commitdd0539888a4109b6e234f4c249a27703260fa31f (patch)
tree0375756b678d07903359ffdac2718e9a2edc465a
parent8e62eadd526aa14e07f0450248de963951d735a9 (diff)
downloadrpmdrake-dd0539888a4109b6e234f4c249a27703260fa31f.tar
rpmdrake-dd0539888a4109b6e234f4c249a27703260fa31f.tar.gz
rpmdrake-dd0539888a4109b6e234f4c249a27703260fa31f.tar.bz2
rpmdrake-dd0539888a4109b6e234f4c249a27703260fa31f.tar.xz
rpmdrake-dd0539888a4109b6e234f4c249a27703260fa31f.zip
(get_pkgs) simplify
-rwxr-xr-xRpmdrake/pkg.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index f5fe76b9..b18700d1 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -389,20 +389,21 @@ Then, restart %s.", $rpmdrake::myname_update)), myexit(-1);
$update->();
$pkg->flag_upgrade or next;
my $selected = 0;
+ my $name = urpm_name($pkg);
- if (member(urpm_name($pkg), @requested)) {
+ if (member($name, @requested)) {
#any { $pkg->id >= $_->{start} && $pkg->id <= $_->{end} } @update_medias or next;
if ($::options{'pkg-sel'} || $::options{'pkg-nosel'}) {
- my $n = urpm_name($pkg);
+ my $n = $name;
$pkg_sel{$n} || $pkg_nosel{$n} or next;
$pkg_sel{$n} and $selected = 1;
} else {
# selecting updates by default:
$selected = 1 if $probe_only_for_updates;
}
- $updates{urpm_name($pkg)} = { selected => $selected, pkg => $pkg };
+ $updates{$name} = { selected => $selected, pkg => $pkg };
} else {
- $installable_pkgs{urpm_name($pkg)} = { selected => $selected, pkg => $pkg };
+ $installable_pkgs{$name} = { selected => $selected, pkg => $pkg };
}
}
if ($::options{'pkg-sel'} && $::options{'pkg-nosel'}) {