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

[lintian] 01/01: c/version-substvars: Handle another use of {} in regex



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

nthykier pushed a commit to branch master
in repository lintian.

commit 6b4ab50da8731d6f8dbc668f6e5fad4ef5e41c0e
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Jun 17 19:25:59 2015 +0200

    c/version-substvars: Handle another use of {} in regex
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/version-substvars.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/checks/version-substvars.pm b/checks/version-substvars.pm
index ba83f10..a98b3f0 100644
--- a/checks/version-substvars.pm
+++ b/checks/version-substvars.pm
@@ -92,9 +92,9 @@ sub run {
                       . $info->binary_field($pkg1, 'depends', '')))
           ) {
             next
-              unless m/($PKGNAME_REGEX)(?: :any)? \s*           # pkg-name
-                       \(\s*(\>)?=\s*                           # rel
-                       \${((?:Source-|source:|binary:)Version)} # subvar
+              unless m/($PKGNAME_REGEX)(?: :any)? \s*               # pkg-name
+                       \(\s*(\>)?=\s*                               # rel
+                       \$[{]((?:Source-|source:|binary:)Version)[}] # subvar
                       /x;
 
             my $gt = $2//'';

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


Reply to: