summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 721b13c4..77e17c0c 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -3287,10 +3287,13 @@ sub check_sources_signatures {
if ($verif =~ /NOT OK/) {
$invalid_sources{$filepath} = N("Invalid signature (%s)", $verif);
} else {
- unless ($medium && $medium->{start} <= $id && $id <= $medium->{end}) {
+ #print "+++$medium->{name}:$medium->{start}:$medium->{end}:$id\n";
+ unless ($medium &&
+ defined $medium->{start} && $medium->{start} <= $id &&
+ defined $medium->{end} && $id <= $medium->{end}) {
$medium = undef;
foreach (@{$urpm->{media}}) {
- $_->{start} <= $id && $id <= $_->{end} and $medium = $_, last;
+ defined $_->{start} && $_->{start} <= $id && defined $_->{end} && $id <= $_->{end} and $medium = $_, last;
}
}