From e38e5b10a72915111291cc04daacc0e41b1bd8a9 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 10 Jul 2023 12:47:33 +0200 Subject: [PATCH] build.sh: fix dpkg-source / quilt 'version does not contain a revision' error --- build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 3d2bba6..6fe36a5 100755 --- a/build.sh +++ b/build.sh @@ -78,6 +78,10 @@ else echo "Use debian codename from environment ($DEBIAN_CODENAME)" fi +# Compute debian package version +DEB_VERSION_SUFFIX="-1" +DEB_VERSION="$VERSION$DEB_VERSION_SUFFIX" + echo "Generate debian changelog using gitdch..." GITDCH_ARGS=('--verbose') [ -n "$QUIET_ARG" ] && GITDCH_ARGS=('--warning') @@ -93,7 +97,8 @@ then fi $GITDCH \ --package-name mylib \ - --version "${VERSION}" \ + --version "${DEB_VERSION}" \ + --version-suffix "${DEB_VERSION_SUFFIX}" \ --code-name $DEBIAN_CODENAME \ --output debian/changelog \ --release-notes ../../dist/release_notes.md \