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

[lintian] 02/02: c/fields: Replace a regex match with a string equals



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

nthykier pushed a commit to branch master
in repository lintian.

commit b16570f8b5e18d06d447ee5283d7ec416aa1a40e
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Feb 24 21:59:42 2015 +0100

    c/fields: Replace a regex match with a string equals
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/fields.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/fields.pm b/checks/fields.pm
index b0575de..3d11b43 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -990,7 +990,7 @@ sub run {
                               $d_pkg;
                         }
 
-                        if ($d_pkg =~ m/^java-compiler$/o){
+                        if ($d_pkg eq 'java-compiler'){
                             tag 'build-depends-on-an-obsolete-java-package',
                               $d_pkg;
                         }

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


Reply to: