summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm.pm b/urpm.pm
index 7282c685..6edac54e 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -654,11 +654,11 @@ sub add_distrib_media {
# (Olivier Thauvin): Is this a workaround ?
$urpm->{media} or $urpm->read_config;
- #- be compatible with pre-10.1 layout
- -d "$dir/$distrib_root" or $distrib_root = "Mandrake/base";
-
#- try to copy/retrieve the hdlists file.
if (my ($dir) = $url =~ m!^(?:removable[^:]*|file):/(.*)!) {
+ #- be compatible with pre-10.1 layout
+ -d "$dir/$distrib_root" or $distrib_root = "Mandrake/base";
+
$hdlists_file = reduce_pathname("$dir/$distrib_root/hdlists");
$urpm->try_mounting($hdlists_file) or $urpm->{error}(N("unable to access first installation medium")), return;