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
This commit is contained in:
Oliver Smith 2022-12-08 15:27:05 +01:00
parent 54a36bcb7d
commit 4fe56c0968
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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