summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-04-02 12:12:54 +0100
committerRaphaël Hertzog <hertzog@debian.org>2020-04-23 17:05:38 +0200
commitfb41c190094040105ed57de0950d2d4af87f92b7 (patch)
treea2bb257eaa8e519bc69200975ff7ed2e2457657c /scripts/build
parente71db2bd58d1abdc6658db82642d9c614e9de2ec (diff)
downloadvyos-live-build-fb41c190094040105ed57de0950d2d4af87f92b7.tar.gz
vyos-live-build-fb41c190094040105ed57de0950d2d4af87f92b7.zip
tidy version reported in `lb config --dump`
live-build might be run from a local folder rather than the system installation, so the dpkg version number should not override the version picked up from VERSION if we care about the possibility of the installed package version potentially differing from the version of the git checkout, or whatever, then this should be printed alongside it, as now done. Gbp-Dch: Ignore [Raphaël Hertzog: tweak to apply on top of my changes]
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/config9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/build/config b/scripts/build/config
index c4fd6cf2a..fcf186010 100755
--- a/scripts/build/config
+++ b/scripts/build/config
@@ -211,14 +211,11 @@ Local_arguments ()
--dump)
# Dump version
- local VERSION_DPKG
- if [ $(which dpkg-query) ]
- then
- VERSION_DPKG="$(dpkg-query -f='${Version}' --show live-build)"
+ Echo "This is live-build version %s" "${VERSION}"
+ if [ $(which dpkg-query) ]; then
+ Echo "Installed version reported by dpkg is %s" "$(dpkg-query -f='${Version}' --show live-build)"
fi
- Echo "%s: This is live-build version %s" "${0}" "${VERSION_DPKG:-${VERSION}}"
-
# Dump conffile contents
Print_conffiles $(Common_config_files)