From 4fe56c096803d9a081670232269dca095e1d0605 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 8 Dec 2022 15:27:05 +0100 Subject: [PATCH] obs: build_deb/rpm: show contents after build After building packages with the OBS scripts, show their contents. This allows easy checking if config files were correctly packaged etc. By adding it here, it will also show up at the end of the related jenkins jobs for gerrit verifications. Related: OS#5817 Change-Id: Ie30b07f35f7e41990fa352523427d86458291d4d --- scripts/obs/data/build_deb.sh | 6 ++++++ scripts/obs/data/build_rpm.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/scripts/obs/data/build_deb.sh b/scripts/obs/data/build_deb.sh index 00302785..11eb36ff 100755 --- a/scripts/obs/data/build_deb.sh +++ b/scripts/obs/data/build_deb.sh @@ -12,3 +12,9 @@ cd _temp/binpkgs/* $apt_get update $apt_get build-dep . su "$BUILDUSER" -c "dpkg-buildpackage -us -uc -j$JOBS" + +# Show contents +cd .. +for i in *.deb; do + dpkg -c "$i" +done diff --git a/scripts/obs/data/build_rpm.sh b/scripts/obs/data/build_rpm.sh index 3ade17ed..77efef26 100755 --- a/scripts/obs/data/build_rpm.sh +++ b/scripts/obs/data/build_rpm.sh @@ -29,3 +29,9 @@ su "$BUILDUSER" -c "rpmbuild -bb ~/rpmbuild/SPECS/$spec" if [ -n "$INSIDE_DOCKER" ]; then su "$BUILDUSER" -c "mv ~/rpmbuild/RPMS/*/*.rpm _temp/binpkgs/" fi + +# Show contents +cd _temp/binpkgs +for i in *.rpm; do + rpm -qlp "$i" +done