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=5fbe26662ee96b1005fde6ee1f32e694594ec1a9

commit 5fbe26662ee96b1005fde6ee1f32e694594ec1a9
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Mon Jun 14 23:36:35 2021 +0200

    dpkg-buildpackage: When printing build type match the extension exactly
    
    We need to anchor the regex at the end of the string, otherwise we get
    partial matches due to substrings.
    
    Closes: #989824
---
 scripts/dpkg-buildpackage.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index 17bb46080..2ecf0766e 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -880,7 +880,7 @@ sub signfile {
 sub fileomitted {
     my ($files, $regex) = @_;
 
-    return $files !~ /$regex/
+    return $files !~ /$regex$/
 }
 
 sub describe_build {

-- 
Dpkg.Org's dpkg

Reply via email to