diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-11-19 17:43:51 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-11-19 17:43:51 +0000 |
commit | 04b1ab5929723adfd48e9603041b84fad983ad1e (patch) | |
tree | 152a20bc9742ff7aee7f0b45881fd583d433db23 | |
parent | f760ad61d95de3c3f218470610b49a142d4f3fe4 (diff) | |
download | mgaonline-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-x | mdkupdate | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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"; } |