Don't assume that if dpkg is installed, we'll actually get a live-helper version number from it.
This commit is contained in:
parent
fc578d6ae6
commit
d8e5221399
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue