summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-12-10 18:15:10 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-12-10 18:15:10 +0000
commit6ff8022a9fcd1a160bb1631f06b467a105620b41 (patch)
treeeb20fca9b3345895d404e99479f8dc16c8c07316 /perl-install/install_any.pm
parente45c1bc02e56d14d98827eb8ebb8696f0e7a6517 (diff)
downloaddrakx-backup-do-not-use-6ff8022a9fcd1a160bb1631f06b467a105620b41.tar
drakx-backup-do-not-use-6ff8022a9fcd1a160bb1631f06b467a105620b41.tar.gz
drakx-backup-do-not-use-6ff8022a9fcd1a160bb1631f06b467a105620b41.tar.bz2
drakx-backup-do-not-use-6ff8022a9fcd1a160bb1631f06b467a105620b41.tar.xz
drakx-backup-do-not-use-6ff8022a9fcd1a160bb1631f06b467a105620b41.zip
enable http:// in auto_install file location
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 82f33ef50..59dbafcfd 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -131,7 +131,10 @@ sub getFile {
log::l("getFile $f:$method");
my $rel = relGetFile($f);
do {
- if ($method =~ /crypto/i) {
+ if ($f =~ m|^http://|) {
+ require http;
+ http::getFile($f);
+ } elsif ($method =~ /crypto/i) {
require crypto;
crypto::getFile($f);
} elsif ($::o->{method} eq "ftp") {
@@ -139,7 +142,7 @@ sub getFile {
ftp::getFile($rel);
} elsif ($::o->{method} eq "http") {
require http;
- http::getFile($rel);
+ http::getFile("$ENV{URLPREFIX}/$rel");
} else {
#- try to open the file, but examine if it is present in the repository, this allow
#- handling changing a media when some of the file on the first CD has been copied