From 7be51dd4d6821506760245095f92534494da893d Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Fri, 6 Dec 2002 17:50:21 +0000 Subject: 4.1-10mdk --- urpmi.addmedia | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'urpmi.addmedia') 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 () { - 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 { -- cgit v1.2.1