summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-03 15:46:04 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-03 15:46:04 +0000
commit026721744c22e2f02a595eda5970bd02121101b2 (patch)
treec22262cd2e92b8d6814229bb4b48ce97c08a2127 /mdkupdate
parentd08051b7449997e3db303e97f8094f42ac25679e (diff)
downloadmgaonline-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
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdkupdate b/mdkupdate
index 73f151d3..e97050ed 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -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 });
}