summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-11-19 17:43:51 +0000
committerDaouda Lo <daouda@mandriva.com>2004-11-19 17:43:51 +0000
commit04b1ab5929723adfd48e9603041b84fad983ad1e (patch)
tree152a20bc9742ff7aee7f0b45881fd583d433db23
parentf760ad61d95de3c3f218470610b49a142d4f3fe4 (diff)
downloadmgaonline-04b1ab5929723adfd48e9603041b84fad983ad1e.tar
mgaonline-04b1ab5929723adfd48e9603041b84fad983ad1e.tar.gz
mgaonline-04b1ab5929723adfd48e9603041b84fad983ad1e.tar.bz2
mgaonline-04b1ab5929723adfd48e9603041b84fad983ad1e.tar.xz
mgaonline-04b1ab5929723adfd48e9603041b84fad983ad1e.zip
- backport changes for 10.1 mirror structure
-rwxr-xr-xmdkupdate5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkupdate b/mdkupdate
index facfc95a..2d3a07a0 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -165,10 +165,11 @@ sub add_media {
my $mirror = shift;
my ($r) = mdkonline::get_release();
my $dist_type = mdkonline::get_distro_type();
- my $fullpath2mir = "ftp://" . $mirror . if_($dist_type, "/$dist_type") . "/$r" . "/RPMS" . "/";
+ my $fullpath2mir = $r <= 10.0 ? "ftp://" . $mirror . if_($dist_type, "/$dist_type") ."/$r" . "/RPMS" . "/" :
+ "ftp://" . $mirror . "/$r" . "/main_updates" . "/";
eval {
system "/usr/sbin/urpmi.removemedia", "mdkupdate";
- system "/usr/sbin/urpmi.addmedia", "--update", "mdkupdate", $fullpath2mir, "with", "../base/synthesis.hdlist.cz";
+ system "/usr/sbin/urpmi.addmedia", "--update", "mdkupdate", $fullpath2mir, "with", $r <= 10.0 ? "../base/synthesis.hdlist.cz" : "media_info/synthesis.hdlist.cz";
};
$@ and die "Problem adding Update Media with urpmi";
}