chiark / gitweb /
dgit: Use $tarball_f_ext_re for test_source_only_changes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 5 Sep 2019 08:39:51 +0000 (09:39 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 5 Sep 2019 08:39:51 +0000 (09:39 +0100)
The old ad-hoc regexp doesn't match .tar.gz.{asc,sig}.

Closes: #939280
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 941a14b93630d198172570a2a943d5ea29874d11..fde8d6153dad5a92ef4d3c4c161066f76441f744 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -2015,7 +2015,7 @@ sub test_source_only_changes ($) {
     foreach my $l (split /\n/, getfield $changes, 'Files') {
         $l =~ m/\S+$/ or next;
         # \.tar\.[a-z0-9]+ covers orig.tar and the tarballs in native packages
-        unless ($& =~ m/(?:\.dsc|\.diff\.gz|\.tar\.[a-z0-9]+|_source\.buildinfo)$/) {
+        unless ($& =~ m/(?:\.dsc|\.diff\.gz|$tarball_f_ext_re|_source\.buildinfo)$/) {
             print f_ "purportedly source-only changes polluted by %s\n", $&;
             return 0;
         }