[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/03: Factor out the regex that matches "repacked" tarballs based on their filename.



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

lamby pushed a commit to branch master
in repository lintian.

commit 157f7fdcbdc2961ef339237746f14d268a9babb1
Author: Chris Lamb <lamby@debian.org>
Date:   Fri Feb 16 21:42:03 2018 +0000

    Factor out the regex that matches "repacked" tarballs based on their filename.
---
 debian/changelog    |  4 ++++
 lib/Lintian/Util.pm | 10 ++++++++++
 2 files changed, 14 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b2a6f81..2bfe169 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -22,6 +22,10 @@ lintian (2.5.76) UNRELEASED; urgency=medium
     + [CL] Drop all the overrides for Lintian titself now that we use the
       <!nocheck> build profile for the previously-spurious warnings.
 
+  * lib/Lintian/Util.pm:
+    + [CL] Factor out the regex that matches "repacked" tarballs based on
+      their filename.
+
   * t/scripts/changelog-format.t:
     + [CL] Provide some possibly-helpful advice when violating the "entry
       header" changelog test.
diff --git a/lib/Lintian/Util.pm b/lib/Lintian/Util.pm
index 4f4deeb..bd18052 100644
--- a/lib/Lintian/Util.pm
+++ b/lib/Lintian/Util.pm
@@ -93,6 +93,7 @@ BEGIN {
           pipe_tee
           untaint
           $PKGNAME_REGEX
+          $PKGREPACK_REGEX
           $PKGVERSION_REGEX
           ),
         @{ $EXPORT_TAGS{constants} });
@@ -216,6 +217,15 @@ is not anchored and does not enforce any "boundary" characters.
 
 our $PKGNAME_REGEX = qr/[a-z0-9][-+\.a-z0-9]+/o;
 
+=item $PKGREPACK_REGEX
+
+Regular expression that matches "repacked" package names.  The expression is
+not anchored and does not enforce any "boundary" characters.
+
+=cut
+
+our $PKGREPACK_REGEX = qr/(dfsg|debian|ds|repack)/o;
+
 =item $PKGVERSION_REGEX
 
 Regular expression that matches valid package versions.  The

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: