From 15cde5c25f4ec7b5b8121d8a13ab9fe7c105e4b3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 8 Mar 2000 23:09:32 +0000 Subject: no_comment --- perl-install/install_any.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'perl-install/install_any.pm') diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index e77c4af61..c11e24be3 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -506,6 +506,9 @@ sub install_urpmi { (my $name = _("installation")) =~ s/\s/_/g; #- in case translators are too good :-/ + my $hdlist = "$prefix/var/lib/urpmi/hdlist"; + symlink "$hdlist.cz2", "hdlist.$name.cz2" or log::l("symlink failed " . __FILE__ . " " . __LINE__); + { local *F = getFile("depslist"); output("$prefix/var/lib/urpmi/depslist", ); @@ -519,7 +522,10 @@ sub install_urpmi { ftp => $ENV{URLPREFIX}, http => $ENV{URLPREFIX}, cdrom => "removable_cdrom_1://mnt/cdrom" }}{$method}; - print LIST "$dir/Mandrake/RPMS/", /(\S+)/, "\n" foreach cat_("$prefix/var/lib/urpmi/depslist"); + + local *FILES; open FILES, "bzip2 -dc $hdlist.cz2 2>/dev/null | hdlist2names - |"; + chop, print LIST "$dir/Mandrake/RPMS/$_\n" foreach ; + close FILES or log::l("hdlist2names failed"), return; $dir .= "/Mandrake/RPMS with ../base/hdlist.cz2" if $method =~ /ftp|http/; eval { output "$prefix/etc/urpmi/urpmi.cfg", "$name $dir\n" }; -- cgit v1.2.1