aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-xRpmdrake/formatting.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index e3de5fb5..5c404b0c 100755
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -76,8 +76,9 @@ sub urpm_name {
sub pkg2medium {
my ($p, $urpm) = @_;
+ my $id = $p->id;
foreach (@{$urpm->{media}}) {
- !$_->{ignore} && $p->id <= $_->{end} and return $_;
+ !$_->{ignore} && $id >= $_->{start} && $id <= $_->{end} and return $_;
}
undef;
}