This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=a0b4da48cade31ac32d59c70813d747cd14503d8

commit a0b4da48cade31ac32d59c70813d747cd14503d8
Author: Nicolas Boulenguez <[email protected]>
AuthorDate: Tue Jul 2 10:44:20 2024 +0200

    scripts/mk: Replace more GNU sed constructs with POSIX ones
    
    This fixes tests with BSD sed.
    
    Fixes: commit e146a68a375453db89bc3b5e816d9405e5fd5634
    Signed-off-by: Guillem Jover <[email protected]>
    Changelog: silent
---
 scripts/mk/pkg-info.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mk/pkg-info.mk b/scripts/mk/pkg-info.mk
index cfd456af1..ddda4f736 100644
--- a/scripts/mk/pkg-info.mk
+++ b/scripts/mk/pkg-info.mk
@@ -21,7 +21,7 @@ dpkg_pkg_info_mk_included = yes
 dpkg_parsechangelog_run = $(eval $(shell dpkg-parsechangelog | sed -n '\
   s/^Distribution: \(.*\)/$$(eval DEB_DISTRIBUTION:=\1)/p;\
   s/^Source: \(.*\)/$$(eval DEB_SOURCE:=\1)/p;\
-  s/^Version: \([0-9]*:\)\?\([^-]*\)\(\(.*\)-[^-]*\)\?$$/\
+  s/^Version: \([0-9]*:\)\{0,1\}\([^-]*\)\(\(.*\)-[^-]*\)\{0,1\}$$/\
     $$(eval DEB_VERSION:=\1\2\3)\
     $$(eval DEB_VERSION_EPOCH_UPSTREAM:=\1\2\4)\
     $$(eval DEB_VERSION_UPSTREAM_REVISION:=\2\3)\

-- 
Dpkg.Org's dpkg

Reply via email to