summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index c84565d2..1c4a51c6 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -967,6 +967,7 @@ sub update_media {
#- check for a reconfig.urpmi file (if not already reconfigured)
if (!$media_redone{$medium->{name}}) {
my $reconfig_urpmi = reduce_pathname("$medium->{url}/reconfig.urpmi");
+ $reconfig_urpmi =~ s,^(removable[^:]*|file)://,,;
if (-s $reconfig_urpmi && $urpm->reconfig_urpmi($reconfig_urpmi, $medium->{name})) {
$media_redone{$medium->{name}} = 1;
redo MEDIA;