summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 50f8f071..dfa782d0 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -193,7 +193,7 @@ sub probe_medium {
$medium->{ignore} = 1, $urpm->{error}("unable to find hdlist file for \"$medium->{name}\", medium ignored");
}
unless ($medium->{ignore} || $medium->{list}) {
- $medium->{list} = "list.$1";
+ $medium->{list} = "list.$medium->{name}";
-e "$urpm->{statedir}/$medium->{list}" or
$medium->{ignore} = 1, $urpm->{error}("unable to find list file for \"$medium->{name}\", medium ignored");
}