aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-27 09:26:01 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-27 09:26:01 +0000
commitbd6d17563ff72a3777da12955dd0f87a30e0be79 (patch)
treefd082389a01021e176adb96026725ddf40d431a3
parentb20bc12ce0a7631cf4681a0e6c9d171940fea102 (diff)
downloadrpmdrake-bd6d17563ff72a3777da12955dd0f87a30e0be79.tar
rpmdrake-bd6d17563ff72a3777da12955dd0f87a30e0be79.tar.gz
rpmdrake-bd6d17563ff72a3777da12955dd0f87a30e0be79.tar.bz2
rpmdrake-bd6d17563ff72a3777da12955dd0f87a30e0be79.tar.xz
rpmdrake-bd6d17563ff72a3777da12955dd0f87a30e0be79.zip
(get_pkgs) restore rpmdrake-2.x behaviour (which is inconsistant with
urpmi one) by only computing updates on media flagged as update (#30546)
-rwxr-xr-xRpmdrake/pkg.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 087c200e..a59f1397 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -396,8 +396,7 @@ sub get_pkgs {
my $selected = 0;
my $name = urpm_name($pkg);
- if (member($name, @requested)) {
- #any { $pkg->id >= $_->{start} && $pkg->id <= $_->{end} } @update_medias or next;
+ if (member($name, @requested) && any { $pkg->id >= $_->{start} && $pkg->id <= $_->{end} } @update_medias) {
if ($::options{'pkg-sel'} || $::options{'pkg-nosel'}) {
my $n = $name;
$pkg_sel{$n} || $pkg_nosel{$n} or next;