aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorLibravatarDaniel Baumann <daniel@debian.org>2025-04-29 04:12:55 +0200
committerLibravatarDaniel Baumann <daniel@debian.org>2025-04-29 04:18:55 +0200
commit9069c7d24a4996f9924151ad31011dd6eae4b13d (patch)
tree748855646bc37a0f08b47fc96aa2f0d712cbaa8f /debian
parentea56e3e1db8fe40fbbd65884a84f6d29039e4247 (diff)
Harmonizing overwriting of upstream version string with dpkg-parsechangelog.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 216359b..1e32165 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
SHELL := sh -e
-VERSION := $(shell dpkg-parsechangelog -SVersion | sed -e 's|~dev|.dev|' -e 's|+.*||')
+VERSION := $(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }' | rev | cut -d- -f2- | rev)
%:
dh ${@} --buildsystem=pybuild --with=python3