summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-10-21 11:17:03 +0000
committerDaouda Lo <daouda@mandriva.com>2004-10-21 11:17:03 +0000
commit8f857f2693c21e0376a0f87f733280954b1631d6 (patch)
treef29d47def26252f6d4ae053248c2756f1a0875cf
parent9d6da03b0125a231b4ef0bcc267e168264a22293 (diff)
downloadmgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.tar
mgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.tar.gz
mgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.tar.bz2
mgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.tar.xz
mgaonline-8f857f2693c21e0376a0f87f733280954b1631d6.zip
- handle corporate case
-rwxr-xr-xmdkupdate3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index c17cbc1b..c88300ab 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -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";