summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-02-05 12:47:42 +0000
committerFrancois Pons <fpons@mandriva.com>2001-02-05 12:47:42 +0000
commit66954e5745ec024402660d4a7559eaf7e7fc9ae2 (patch)
treea62244e4ead21866041f8489c09e393923656368 /perl-install/pkgs.pm
parent5def8a49fdf652af9e53ef815bd494445c1d75e7 (diff)
downloaddrakx-66954e5745ec024402660d4a7559eaf7e7fc9ae2.tar
drakx-66954e5745ec024402660d4a7559eaf7e7fc9ae2.tar.gz
drakx-66954e5745ec024402660d4a7559eaf7e7fc9ae2.tar.bz2
drakx-66954e5745ec024402660d4a7559eaf7e7fc9ae2.tar.xz
drakx-66954e5745ec024402660d4a7559eaf7e7fc9ae2.zip
updated to use urpmi new format (change fakemedium to better label)
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index b6e7de82b..0baccea9e 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -346,7 +346,7 @@ sub psUpdateHdlistsDeps {
#- copy hdlist file directly to $prefix/var/lib/urpmi, this will be used
#- for getting header of package during installation or after by urpmi.
- my $fakemedium = $method . $medium;
+ my $fakemedium = "$descr ($method$medium)";
my $newf = "$prefix/var/lib/urpmi/hdlist.$fakemedium.cz" . ($hdlist =~ /\.cz2/ && "2");
-e $newf and do { unlink $newf or die "cannot remove $newf: $!"; };
install_any::getAndSaveFile("Mandrake/base/$hdlist", $newf) or die "no $hdlist found";
@@ -387,7 +387,7 @@ sub psUsingHdlists {
sub psUsingHdlist {
my ($prefix, $method, $packages, $hdlist, $medium, $rpmsdir, $descr, $selected, $fhdlist) = @_;
- my $fakemedium = $method . $medium;
+ my $fakemedium = "$descr ($method$medium)";
log::l("trying to read $hdlist for medium $medium");
#- if the medium already exist, use it.