diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-09-30 09:33:45 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-09-30 09:33:45 +0000 |
commit | c4214da47d4b021b5a2ab507f01206b287f441a1 (patch) | |
tree | 0dc42b1950fc8268af2168f227e5cf641c96fd20 /mdkapplet | |
parent | 886a67fbfc2f3a8bb0a480cad917c0c8bf5593ee (diff) | |
download | mgaonline-c4214da47d4b021b5a2ab507f01206b287f441a1.tar mgaonline-c4214da47d4b021b5a2ab507f01206b287f441a1.tar.gz mgaonline-c4214da47d4b021b5a2ab507f01206b287f441a1.tar.bz2 mgaonline-c4214da47d4b021b5a2ab507f01206b287f441a1.tar.xz mgaonline-c4214da47d4b021b5a2ab507f01206b287f441a1.zip |
- fix ver cmp
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -270,7 +270,7 @@ sub compareWithInstalled { $p =~ /(.*)-(.*)-(.*)$/; my ($n, $v, $r) = ($1, $2, $3); if ($name eq $n) { #my $iu = mdkonline::rpmvercmp($ver, $v); my $ir = mdkonline::rpmvercmp($rel, $r); - if (mdkonline::rpmvercmp($ver, $v) > 0 || mdkonline::rpmvercmp($ver, $v) == 0 && mdkonline::rpmvercmp($rel, $r) > 0) { + if (mdkonline::rpm_ver_cmp($ver, $v) > 0 || mdkonline::rpm_ver_cmp($ver, $v) == 0 && mdkonline::rpm_ver_cmp($rel, $r) > 0) { #print "$name-$ver-$rel $n-$v-$r *** CMPVER=$iu ** CMPREL = $ir \n"; $isUpdate = 1 and last; } |