diff options
author | Daouda Lo <daouda@mandriva.com> | 2005-10-14 20:07:11 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2005-10-14 20:07:11 +0000 |
commit | 5a299cd15421ea014b5d54a3c3931a626d7a1a4b (patch) | |
tree | 2f3142a0a99b213ba7a3a16152b44e332b609e73 /mdkupdate | |
parent | 236cb976297ca35ff4ed117a776f7f80b1030a77 (diff) | |
download | mgaonline-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-x | mdkupdate | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"; |