summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-18 14:36:50 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-18 14:36:50 +0000
commitf0c3d7a85cd08deae78bd84cc330d5c188c74207 (patch)
tree72735cf21b8ab9c0148b4401b75b6eed93edbfd9
parent1d38856894a721f4eeeed543b926caee975997bf (diff)
downloaddrakx-backup-do-not-use-f0c3d7a85cd08deae78bd84cc330d5c188c74207.tar
drakx-backup-do-not-use-f0c3d7a85cd08deae78bd84cc330d5c188c74207.tar.gz
drakx-backup-do-not-use-f0c3d7a85cd08deae78bd84cc330d5c188c74207.tar.bz2
drakx-backup-do-not-use-f0c3d7a85cd08deae78bd84cc330d5c188c74207.tar.xz
drakx-backup-do-not-use-f0c3d7a85cd08deae78bd84cc330d5c188c74207.zip
tentatively fix #7792 (seems like line number don't match #7792,
but this one I'm fixing was obviously wrong, at least)
-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 36942fa6b..491f3b30b 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 = $_->arch;
+ my ($arch) = $_ =~ /\.([^\.]+)\.rpm/;
my $ldir = $dir;
$ldir =~ s|/([^/]*)%{ARCH}|/./$1$arch|; $ldir =~ s|%{ARCH}|$arch|g;
print $LIST "$ldir/$_";