From 3573ced9eb885d19b0a59a6a850bd27de63da4db Mon Sep 17 00:00:00 2001 From: baiyuan Date: Mon, 20 Oct 2014 01:53:43 -0400 Subject: [PATCH] defect 4301: buildkit -v does not have correct output --- xCAT-buildkit/bin/buildkit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index 162b71ca4..d058c0e81 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -364,7 +364,8 @@ if ($::VERSION) my $versioncmd = "rpm -q --qf \"%{NAME}: %{VERSION}-%{RELEASE} \n\" xCAT-buildkit"; my $message = "Error quering xCAT-buildkit rpm. Version info is not available. \n"; if ( $debianflag ){ - $versioncmd = "dpkg-query --show -f='\${PackageSpec}: \${Version}\n' xcat-buildkit"; + + $versioncmd = "dpkg-query --show -f='\${binary:Package}: \${Version}\n' xcat-buildkit"; $message = "Error quering xcat-buildkit package. Version info is not available. \n"; } if ( system($versioncmd) ) {