diff options
author | Daouda Lo <daouda@mandriva.com> | 2005-10-13 21:57:29 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2005-10-13 21:57:29 +0000 |
commit | 729dc207a3e738d56282c373253b7fdfc5d8f7f4 (patch) | |
tree | 7006c5c51f8f3cfe679f350ea5425695abe35a94 | |
parent | 672c7e2b47172c2b70fe18399c78d15f15318bf5 (diff) | |
download | mgaonline-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-x | mdkupdate | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |