diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-09-05 09:39:51 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-09-05 09:39:51 +0100 |
commit | ce698d485ec4dc0315bef08a69061728564e7c7c (patch) | |
tree | 385775f47b8c7531d51e1edd21f8cc23be30ac45 | |
parent | 0e6b4849c4a26631f70c6537d016c5da10e1ec1c (diff) |
dgit: Use $tarball_f_ext_re for test_source_only_changes
The old ad-hoc regexp doesn't match .tar.gz.{asc,sig}.
Closes: #939280
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |