From 1865a876f8b6b26a28fcd7df8d8b25828f914ddf Mon Sep 17 00:00:00 2001 From: Rylie Pavlik Date: Fri, 3 May 2024 12:41:05 -0500 Subject: [PATCH] debian: Further improve commit package script debian: Fix script --- debian/extra/prepare-commit-package.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/extra/prepare-commit-package.sh b/debian/extra/prepare-commit-package.sh index b6769c0bd..0d8a274ec 100755 --- a/debian/extra/prepare-commit-package.sh +++ b/debian/extra/prepare-commit-package.sh @@ -33,5 +33,16 @@ set -e UPSTREAM_VER=$(git describe --exclude "v0*" "$COMMIT_TO_PACKAGE" | sed -E -e 's/^v//' -e 's/-([0-9]+)-g([0-9a-f])/+git\1.\2/') echo "Computed package version ${UPSTREAM_VER}" git archive --format=tar "--prefix=monado_${UPSTREAM_VER}/" "${COMMIT_TO_PACKAGE}" | gzip -n > "../monado_${UPSTREAM_VER}.orig.tar.gz" - dch --newversion "${UPSTREAM_VER}-${PKG_REVISION}" --preserve "Automated CI build of commit ${COMMIT_TO_PACKAGE}" + + # Show hash of the orig.tar.gz for easy comparison + sha256sum "../monado_${UPSTREAM_VER}.orig.tar.gz" + + dch --newversion "${UPSTREAM_VER}-${PKG_REVISION}" \ + --preserve \ + --force-distribution \ + --distribution bookworm \ + "Automated CI build of commit ${COMMIT_TO_PACKAGE}" + + # Show changelog entry added + dpkg-parsechangelog --count 1 )