aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-05 15:44:37 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-05 15:44:37 +0000
commit62471cb99df27cda5d7d90b75560b291747065aa (patch)
tree367eda0f3102db7e0a59d3b7384c76f84ad1ff43
parent2395669efc83b7289063c6a713d35b771cc8bb0f (diff)
downloadrpmdrake-62471cb99df27cda5d7d90b75560b291747065aa.tar
rpmdrake-62471cb99df27cda5d7d90b75560b291747065aa.tar.gz
rpmdrake-62471cb99df27cda5d7d90b75560b291747065aa.tar.bz2
rpmdrake-62471cb99df27cda5d7d90b75560b291747065aa.tar.xz
rpmdrake-62471cb99df27cda5d7d90b75560b291747065aa.zip
when processing pkg2medium, try harder to honour the
ignored media
-rwxr-xr-xrpmdrake2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index df9e0785..31f32898 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -103,7 +103,7 @@ Disabling \"Mandrake choices\" classification.")), return;
sub pkg2medium {
my ($p, $urpm) = @_;
my $tmp;
- each_index { $p->id <= $_ and $tmp ||= ${$urpm->{media}}[$::i] } map { $_->{end} } @{$urpm->{media}};
+ each_index { !$_->{ignore} && $p->id <= $_->{end} and $tmp ||= ${$urpm->{media}}[$::i] } @{$urpm->{media}};
$tmp;
}