summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-18 14:37:23 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-18 14:37:23 +0000
commit320210cc26f2d846b501f925d7b8cc6a26ac845b (patch)
treec0a34898fdc7692f582a504213f3b7ea00abcb77 /perl-install
parentf0c3d7a85cd08deae78bd84cc330d5c188c74207 (diff)
downloaddrakx-320210cc26f2d846b501f925d7b8cc6a26ac845b.tar
drakx-320210cc26f2d846b501f925d7b8cc6a26ac845b.tar.gz
drakx-320210cc26f2d846b501f925d7b8cc6a26ac845b.tar.bz2
drakx-320210cc26f2d846b501f925d7b8cc6a26ac845b.tar.xz
drakx-320210cc26f2d846b501f925d7b8cc6a26ac845b.zip
better match
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 491f3b30b..ed3f2016f 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -562,7 +562,7 @@ sub install_urpmi {
open(my $F, "parsehdlist '$prefix/var/lib/urpmi/hdlist.$name.cz' |");
local $_;
while (<$F>) {
- my ($arch) = $_ =~ /\.([^\.]+)\.rpm/;
+ my ($arch) = $_ =~ /\.([^\.]+)\.rpm$/;
my $ldir = $dir;
$ldir =~ s|/([^/]*)%{ARCH}|/./$1$arch|; $ldir =~ s|%{ARCH}|$arch|g;
print $LIST "$ldir/$_";