summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2005-10-14 20:07:11 +0000
committerDaouda Lo <daouda@mandriva.com>2005-10-14 20:07:11 +0000
commit5a299cd15421ea014b5d54a3c3931a626d7a1a4b (patch)
tree2f3142a0a99b213ba7a3a16152b44e332b609e73 /mdkupdate
parent236cb976297ca35ff4ed117a776f7f80b1030a77 (diff)
downloadmgaonline-5a299cd15421ea014b5d54a3c3931a626d7a1a4b.tar
mgaonline-5a299cd15421ea014b5d54a3c3931a626d7a1a4b.tar.gz
mgaonline-5a299cd15421ea014b5d54a3c3931a626d7a1a4b.tar.bz2
mgaonline-5a299cd15421ea014b5d54a3c3931a626d7a1a4b.tar.xz
mgaonline-5a299cd15421ea014b5d54a3c3931a626d7a1a4b.zip
- use strict
- get_release on correct var
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdkupdate b/mdkupdate
index b859bc00..9f02c3e4 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -20,6 +20,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
################################################################################
+use strict;
use POSIX;
use lib qw(/usr/lib/libDrakX /usr/lib/libDrakX/drakfirsttime);
use common;
@@ -102,6 +103,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) {
$noscheduled = join(',', @{$c2h->{nosched}}); $noscheduled =~ s/\.rpm//g;
#printf "SCHEDULED = $scheduled\nNOSCHEDULED = $noscheduled\n";
-f $currentrpm or rpm_qa($currentrpm);
+ my ($release) = mdkonline::get_release();
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";