summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-11-12 17:08:17 +0000
committerHéctor Orón Martínez <zumbi@debian.org>2019-09-01 01:59:08 +0200
commit1f83ba8825876b6176a363f7b53ff4567f769f11 (patch)
tree3a2c4244d3de5744789da6fdb23f5c2e30340cd2
parent75103b2c817df8e8db6824168058e0b312c89df9 (diff)
deb: Show version of each package that we preinstall
If packages fail to unpack or configure during the preinstall step, it's useful for the log to indicate precisely which packages were used. Signed-off-by: Simon McVittie <smcv@collabora.com> Forwarded: https://github.com/openSUSE/obs-build/pull/497 Gbp-Pq: Name deb-Show-version-of-each-package-that-we-preinstall.patch
-rw-r--r--build-pkg-deb1
1 files changed, 1 insertions, 0 deletions
diff --git a/build-pkg-deb b/build-pkg-deb
index 4437149..3741b55 100644
--- a/build-pkg-deb
+++ b/build-pkg-deb
@@ -137,6 +137,7 @@ pkg_preinstall_deb() {
elif test -f "control.tar.xz" ; then
$TAR -C .init_b_cache/scripts/control -J -f control.tar.xz
fi
+ grep '^Version:' .init_b_cache/scripts/control/control || echo 'Version: unknown'
if test -f "data.tar.gz" ; then
$TAR -z -f data.tar.gz
elif test -f "data.tar.xz" ; then