diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-10-21 11:17:03 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-10-21 11:17:03 +0000 |
commit | 8f857f2693c21e0376a0f87f733280954b1631d6 (patch) | |
tree | f29d47def26252f6d4ae053248c2756f1a0875cf | |
parent | 9d6da03b0125a231b4ef0bcc267e168264a22293 (diff) | |
download | mgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.tar mgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.tar.gz mgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.tar.bz2 mgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.tar.xz mgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.zip |
- handle corporate case
-rwxr-xr-x | mdkupdate | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -159,7 +159,8 @@ sub update_conf { sub add_media { my $mirror = shift; my ($r) = mdkonline::get_release(); - my $fullpath2mir = "ftp://" . $mirror . "/$r" . "/RPMS" . "/"; + my $corporate = 1 if cat_("/etc/mandrake-release") =~ /corporate/i; + my $fullpath2mir = "ftp://" . $mirror . if_($corporate == 1, "/corporate") ."/$r" . "/RPMS" . "/"; eval { system "/usr/sbin/urpmi.removemedia", "mdkupdate"; system "/usr/sbin/urpmi.addmedia", "--update", "mdkupdate", $fullpath2mir, "with", "../base/synthesis.hdlist.cz"; |