From c6c41653ffbea5c2f3d5ee18dcc9211405cbcda5 Mon Sep 17 00:00:00 2001 From: marco Date: Tue, 17 Sep 2024 13:29:22 +0200 Subject: [PATCH] deb build: get version with dpkg-parsechangelog -S --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 5b8d6fc51f8..ec80caff985 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,6 @@ #!/usr/bin/make -f -export DEB_VERSION=$(shell dpkg-parsechangelog | grep -E '^Version:' | cut -f 2 -d ' ') +export DEB_VERSION=$(shell dpkg-parsechangelog -SVersion) export BUILD_VERSION=v${DEB_VERSION}-debian-pragmatic export GO111MODULE=on