summaryrefslogtreecommitdiffstats
path: root/perl-install/crypto.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-03-03 09:15:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-03-03 09:15:17 +0000
commitb128756215cd5c8cddc5d17a5b4b1fd6cff1fc33 (patch)
tree5b923d7d828a1e640669d6408272d9aa454058b9 /perl-install/crypto.pm
parent462639b181ea30e214e3d82e9dd21b47a1c3ba9e (diff)
downloaddrakx-b128756215cd5c8cddc5d17a5b4b1fd6cff1fc33.tar
drakx-b128756215cd5c8cddc5d17a5b4b1fd6cff1fc33.tar.gz
drakx-b128756215cd5c8cddc5d17a5b4b1fd6cff1fc33.tar.bz2
drakx-b128756215cd5c8cddc5d17a5b4b1fd6cff1fc33.tar.xz
drakx-b128756215cd5c8cddc5d17a5b4b1fd6cff1fc33.zip
- community updates are not in a per-version directory either
- cooker & community urls do contain .../RPMS at the end whereas updates directory do not, handle this
Diffstat (limited to 'perl-install/crypto.pm')
-rw-r--r--perl-install/crypto.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/crypto.pm b/perl-install/crypto.pm
index 1e858907c..3415fa43d 100644
--- a/perl-install/crypto.pm
+++ b/perl-install/crypto.pm
@@ -57,7 +57,7 @@ sub mirrors {
local $SIG{ALRM} = sub { die "timeout" };
alarm 60;
my $distro_type = $o_distro_type || 'updates';
- my $sub_dir = $distro_type eq 'cooker' ? '' : ($::corporate ? '/corporate' : '') . '/' . version();
+ my $sub_dir = $distro_type =~ /cooker|community/ ? '' : ($::corporate ? '/corporate' : '') . '/' . version();
foreach (<$f>) {
my ($arch, $url, $dir) = m|$distro_type([^:]*):ftp://([^/]*)(/\S*)| or next;
MDK::Common::System::compat_arch($arch) or
@@ -67,6 +67,7 @@ sub mirrors {
my $qu = quotemeta $_;
$url =~ /\.$qu(?:\..*)?$/ and $land = $url2land{$_};
}
+ $dir =~ s!/RPMS$!!;
$mirrors{$url} = [ $land, $dir . $sub_dir ];
}
http::getFile('/XXX'); #- close connection.