diff options
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-x | urpmi.addmedia | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia index 7569c745..29d1aba8 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -151,11 +151,9 @@ and [options] are from #- examine its contents and create all requested media, url is now a simple regex. my $heading = quotemeta($options{distrib}); my $qarch = quotemeta($options{arch}); - my $i = 1; local *F; open F, "$urpm->{cachedir}/partial/$basename"; while (<F>) { - print STDERR ">>>$_\n" if chomp; s/#.*$//; s/^\s*//; s/\s*$//; my ($v, $a, $l, $burl, $relative_hdlist); if (($v, $a, $l, $burl, $relative_hdlist) = /^$heading:([^:]*):([^:]*):([^:]*):(\S*)(?:\s+with\s+(.*))?$/) { @@ -176,8 +174,7 @@ and [options] are from } #- sort according to url or location if possible. !$url || $l && $l =~ /$url/i || $burl =~ /$url/i or next; - $urpm->add_medium("$name$i", $burl, $relative_hdlist, update => $options{update}); - ++$i; + $urpm->add_medium($name, $burl, $relative_hdlist, update => $options{update}, index_name => 0); } close F; } else { |