summaryrefslogtreecommitdiffstats
path: root/perl-install/crypto.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-02-19 16:52:22 +0000
committerFrancois Pons <fpons@mandriva.com>2003-02-19 16:52:22 +0000
commit976b4b9ebedb00801d2e61b496c2b068e80157fd (patch)
tree8d7b34f5297f39fb698e2c64b1776d985f153726 /perl-install/crypto.pm
parentf823ee7b832e4b4fa34d76dd945cb35a5c444233 (diff)
downloaddrakx-backup-do-not-use-976b4b9ebedb00801d2e61b496c2b068e80157fd.tar
drakx-backup-do-not-use-976b4b9ebedb00801d2e61b496c2b068e80157fd.tar.gz
drakx-backup-do-not-use-976b4b9ebedb00801d2e61b496c2b068e80157fd.tar.bz2
drakx-backup-do-not-use-976b4b9ebedb00801d2e61b496c2b068e80157fd.tar.xz
drakx-backup-do-not-use-976b4b9ebedb00801d2e61b496c2b068e80157fd.zip
code slight reorganization.
Diffstat (limited to 'perl-install/crypto.pm')
-rw-r--r--perl-install/crypto.pm27
1 files changed, 14 insertions, 13 deletions
diff --git a/perl-install/crypto.pm b/perl-install/crypto.pm
index 56af9893c..4e4160b80 100644
--- a/perl-install/crypto.pm
+++ b/perl-install/crypto.pm
@@ -136,19 +136,20 @@ sub getPackages {
#- 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, $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);
- #- (re-)enable the medium to allow install of package,
- #- make it an update medium (for install_any::install_urpmi).
- $update_medium->{selected} = 1;
- $update_medium->{update} = 1;
-
- #- search for packages to update.
- $packages->{rpmdb} ||= pkgs::rpmDbOpen($prefix);
- pkgs::selectPackagesToUpgrade($packages, $prefix, $update_medium);
-
+ "Updates for Mandrake Linux " . version(), 1, $fhdlist);
+ if ($update_medium) {
+ 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);
+ #- (re-)enable the medium to allow install of package,
+ #- make it an update medium (for install_any::install_urpmi).
+ $update_medium->{selected} = 1;
+ $update_medium->{update} = 1;
+
+ #- search for packages to update.
+ $packages->{rpmdb} ||= pkgs::rpmDbOpen($prefix);
+ pkgs::selectPackagesToUpgrade($packages, $prefix, $update_medium);
+ }
return $update_medium;
}