summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/media.pm')
-rw-r--r--urpm/media.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 4fa6c6d9..73c1fea2 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -172,6 +172,7 @@ sub _read_config__read_media_info {
$distribconf->parse_mediacfg($media_cfg);
if (open(my $URLS, '<', $media_dir . '/url')) {
+ local $_;
while (<$URLS>) {
chomp($_);
foreach my $medium ($distribconf->listmedia) {
@@ -182,6 +183,7 @@ sub _read_config__read_media_info {
}
if (open(my $MIRRORLISTS, '<', $media_dir . '/mirrorlist')) {
+ local $_;
while (<$MIRRORLISTS>) {
my $mirrorlist = $_;
chomp($mirrorlist);