mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
fix defect 51557 buildkit cannot pickup latest deb package for pessl when creating complete kit
This commit is contained in:
parent
b2d0ef4d87
commit
f8183abc50
@ -420,8 +420,16 @@ sub testVersion_deb
|
||||
if ($::VERBOSE) {
|
||||
print "dpkg --compare-versions $version1 $operator $version2 \n";
|
||||
}
|
||||
my $result =`dpkg --compare-versions $version1 $operator $version2`;
|
||||
|
||||
my $cmd ="dpkg --compare-versions $version1 $operator $version2";
|
||||
my $outref = [];
|
||||
my $result = 0;
|
||||
@$outref = `$cmd 2>&1`;
|
||||
$result = $? ;
|
||||
if ($result)
|
||||
{
|
||||
$result = $result >> 8;
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user