summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 });
}