Don't assume that if dpkg is installed, we'll actually get a live-helper version number from it.

This commit is contained in:
Chris Lamb 2009-01-01 21:32:38 +00:00 committed by Daniel Baumann
parent fc578d6ae6
commit d8e5221399
1 changed files with 3 additions and 3 deletions

View File

@ -155,11 +155,11 @@ Local_arguments ()
# Dump version # Dump version
if [ -x "$(which dpkg-query 2>/dev/null)" ] if [ -x "$(which dpkg-query 2>/dev/null)" ]
then then
echo "${0}: This is live-helper version $(dpkg-query -f='${Version}') --show live-helper" VERSION_DPKG="$(dpkg-query -f='${Version}' --show live-helper)"
else
echo "${0}: This is live-helper version ${VERSION}"
fi fi
echo "${0}: This is live-helper version ${VERSION_DPKG:-${VERSION}}"
# Dump conffile contents # Dump conffile contents
Print_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source Print_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source