From fc578d6ae6b273bc02538e8e69fa660f269e6dc0 Mon Sep 17 00:00:00 2001
From: Chris Lamb <lamby@debian.org>
Date: Thu, 1 Jan 2009 21:05:58 +0000
Subject: Test for dpkg-query instead of dpkg if we are only going to run
 dpkg-query within that scope.

---
 helpers/lh_config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helpers/lh_config b/helpers/lh_config
index e8a96d3..886113d 100755
--- a/helpers/lh_config
+++ b/helpers/lh_config
@@ -153,7 +153,7 @@ Local_arguments ()
 		case "${1}" in
 			--dump)
 				# Dump version
-				if [ -x "$(which dpkg 2>/dev/null)" ]
+				if [ -x "$(which dpkg-query 2>/dev/null)" ]
 				then
 					echo "${0}: This is live-helper version $(dpkg-query -f='${Version}') --show live-helper"
 				else
-- 
cgit v1.0