summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2005-10-13 21:57:29 +0000
committerDaouda Lo <daouda@mandriva.com>2005-10-13 21:57:29 +0000
commit729dc207a3e738d56282c373253b7fdfc5d8f7f4 (patch)
tree7006c5c51f8f3cfe679f350ea5425695abe35a94
parent672c7e2b47172c2b70fe18399c78d15f15318bf5 (diff)
downloadmgaonline-729dc207a3e738d56282c373253b7fdfc5d8f7f4.tar
mgaonline-729dc207a3e738d56282c373253b7fdfc5d8f7f4.tar.gz
mgaonline-729dc207a3e738d56282c373253b7fdfc5d8f7f4.tar.bz2
mgaonline-729dc207a3e738d56282c373253b7fdfc5d8f7f4.tar.xz
mgaonline-729dc207a3e738d56282c373253b7fdfc5d8f7f4.zip
- --no-media-update is used with release > 10.1
-rwxr-xr-xmdkupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index c8d7d9cd..b859bc00 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -104,7 +104,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) {
-f $currentrpm or rpm_qa($currentrpm);
if ($opt eq '--applet') {
my $rpm_exec_name = $release >= 2006.0 ? "/usr/bin/MandrivaUpdate" : "/usr/bin/MandrakeUpdate";
- my $is_no_media_update = $release <= 10.1 ? "--no-media-update" : '';
+ my $is_no_media_update = $release <= 10.1 ? '' : "--no-media-update";
system $rpm_exec_name, "--no-confirmation", $is_no_media_update, "--media=update_source", "--pkg-sel=$scheduled", "--pkg-nosel=$noscheduled";
} elsif ($opt eq '--noX') {
my $in = interactive->vnew;