From 9b6fab8d709e193f5261236199f217937e63656a Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Tue, 5 Mar 2002 16:37:24 +0000 Subject: avoid trying to find hdlist-updates.cz in existing medium (instead of ftp one). --- perl-install/crypto.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'perl-install/crypto.pm') diff --git a/perl-install/crypto.pm b/perl-install/crypto.pm index 14ea7e126..6a33baff2 100644 --- a/perl-install/crypto.pm +++ b/perl-install/crypto.pm @@ -135,10 +135,17 @@ sub getPackages { $crypto::host = $mirror; + #- check first if there is something to get... + my $fhdlist = getFile("base/hdlist.cz", $mirror); + unless ($fhdlist) { + log::l("no updates available, bailing out"); + return; + } + #- extract hdlist of crypto, then depslist. require pkgs; my $update_medium = pkgs::psUsingHdlist($prefix, 'ftp', $packages, "hdlist-updates.cz", "1u", "RPMS", - "Updates for Mandrake Linux " . version(), 1, getFile("base/hdlist.cz", $mirror)) and + "Updates for Mandrake Linux " . version(), 1, $fhdlist) and log::l("read updates hdlist"); #- keep in mind where is the URL prefix used according to mirror (for install_any::install_urpmi). $update_medium->{prefix} = "ftp://$mirror" . dir($mirror); -- cgit v1.2.1