summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);