diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-03-03 15:46:04 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-03-03 15:46:04 +0000 |
commit | 026721744c22e2f02a595eda5970bd02121101b2 (patch) | |
tree | c22262cd2e92b8d6814229bb4b48ce97c08a2127 | |
parent | d08051b7449997e3db303e97f8094f42ac25679e (diff) | |
download | mgaonline-026721744c22e2f02a595eda5970bd02121101b2.tar mgaonline-026721744c22e2f02a595eda5970bd02121101b2.tar.gz mgaonline-026721744c22e2f02a595eda5970bd02121101b2.tar.bz2 mgaonline-026721744c22e2f02a595eda5970bd02121101b2.tar.xz mgaonline-026721744c22e2f02a595eda5970bd02121101b2.zip |
make getting bundle's mirror name more robusg against server changes
-rwxr-xr-x | mdkupdate | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -154,8 +154,7 @@ You need to update to a newer version. You can get a new one from http://start.m my %mirrors = map {split(';', $_, 2) } @$mirrors; add_media($_, $mirrors{$_}, 'media_info/hdlist.cz', '') foreach keys %mirrors; $bundle =~ s/\.rpm$//; - my $bundle_mirror = $bundle; - $bundle_mirror =~ s/-[0-9.]mdk$//; + my $bundle_mirror = find { $_ =~ /^bundle/ } keys %mirrors; push(@bundles, $bundle); install_pkgs($in, \@bundles, $mirrors{$bundle_mirror}, { is_bundle => 1 }); } |