summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm12
1 files changed, 8 insertions, 4 deletions
diff --git a/urpm.pm b/urpm.pm
index 931c593b..fcec839d 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -723,13 +723,17 @@ sub add_distrib_media {
chomp;
s/\s*#.*$//;
/^\s*$/ and next;
+ /^suppl/ and next;
m/^\s*(?:noauto:)?(hdlist\S*\.cz2?)\s+(\S+)\s*(.*)$/ or $urpm->{error}(N("invalid hdlist description \"%s\" in hdlists file"), $_);
my ($hdlist, $rpmsdir, $descr) = ($1, $2, $3);
- $urpm->add_medium($name ? "$descr ($name$medium)" : $descr,
- "$url/$rpmsdir",
- offset_pathname($url, $rpmsdir) . "/$distrib_root/$hdlist",
- %options);
+ $urpm->add_medium(
+ $name ? "$descr ($name$medium)" : $descr,
+ "$url/$rpmsdir",
+ offset_pathname($url, $rpmsdir) . "/$distrib_root/$hdlist",
+ index_name => 0,
+ %options,
+ );
++$medium;
}