summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-03-05 16:37:24 +0000
committerFrancois Pons <fpons@mandriva.com>2002-03-05 16:37:24 +0000
commit9b6fab8d709e193f5261236199f217937e63656a (patch)
tree67421ac6ee34b1df69bed56d3c622cc4c58ada6a
parent8a4c9504ff51d83e48d25d2705f2797f1f99e47d (diff)
downloaddrakx-9b6fab8d709e193f5261236199f217937e63656a.tar
drakx-9b6fab8d709e193f5261236199f217937e63656a.tar.gz
drakx-9b6fab8d709e193f5261236199f217937e63656a.tar.bz2
drakx-9b6fab8d709e193f5261236199f217937e63656a.tar.xz
drakx-9b6fab8d709e193f5261236199f217937e63656a.zip
avoid trying to find hdlist-updates.cz in existing medium (instead of ftp one).
-rw-r--r--perl-install/crypto.pm9
1 files changed, 8 insertions, 1 deletions
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);