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