summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/media.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 5d935590..4fa6c6d9 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1069,7 +1069,7 @@ sub _cleanup_mediacfg_dir {
_remove_medium_from_mediacfg($urpm, $dir, $medium->{mirrorlist}, 1);
}
} elsif ($medium->{url}) {
- if (!grep { $_->{url} eq $medium->{url} } @{$urpm->{media}}) {
+ if (!grep { $_->{url} eq $medium->{url} } @{$urpm->{media}}, 0) {
_remove_medium_from_mediacfg($urpm, $dir, $medium->{url});
}
}