summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-12-06 17:50:21 +0000
committerFrancois Pons <fpons@mandriva.com>2002-12-06 17:50:21 +0000
commit7be51dd4d6821506760245095f92534494da893d (patch)
treeb70b4ef9f057ed689861fccee26ed7d657b6609b /urpmi.addmedia
parent60d4ad6c90817f674088bf32302c575b7b5129f2 (diff)
downloadurpmi-7be51dd4d6821506760245095f92534494da893d.tar
urpmi-7be51dd4d6821506760245095f92534494da893d.tar.gz
urpmi-7be51dd4d6821506760245095f92534494da893d.tar.bz2
urpmi-7be51dd4d6821506760245095f92534494da893d.tar.xz
urpmi-7be51dd4d6821506760245095f92534494da893d.zip
4.1-10mdk
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia5
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 {