fix dpkg compare version op

This commit is contained in:
baiyuan 2014-09-24 04:19:33 -04:00
parent ac34247aba
commit d8eeeb306b

View File

@ -291,7 +291,7 @@ sub find_latest_pkg_deb
if ($latestmatch) {
# then we need to figure out which is the newest
# if the $fdeb is newer than use it
if ( xCAT::BuildKitUtils->testVersion_deb($founddeb{$r}{$fdeb}{version}, ">", $founddeb{$r}{$latestmatch}{version}) ) {
if ( xCAT::BuildKitUtils->testVersion_deb($founddeb{$r}{$fdeb}{version}, "gt", $founddeb{$r}{$latestmatch}{version}) ) {
$latestmatch = $fdeb;
}