[devscripts] 01/03: grep-excuses: Stricter checks for package/maintainer

James McCoy jamessan at debian.org
Thu Mar 9 03:24:25 UTC 2017


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

jamessan pushed a commit to branch pu/yaml-excuses
in repository devscripts.

commit d39854eeb59b48f52b8d5a27683d89ec899f43c9
Author: James McCoy <jamessan at debian.org>
Date:   Wed Mar 8 20:44:41 2017 -0500

    grep-excuses: Stricter checks for package/maintainer
    
    Prior to 048b30ba, package name was an equality (albeit with regex)
    check and maintainer was anchored by word boundaries.  Restore this
    behavior by using an actual equality check (now that the data is
    structured) for package name and re-adding the word boundary for
    maintainer.
---
 scripts/grep-excuses.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/grep-excuses.pl b/scripts/grep-excuses.pl
index 6f00103..ac75f1a 100755
--- a/scripts/grep-excuses.pl
+++ b/scripts/grep-excuses.pl
@@ -315,9 +315,9 @@ my $excuses = YAML::Syck::Load($yaml);
 for my $source (@{$excuses->{sources}})
 {
     next if $source->{source} =~ m/_pu$/;
-    if ($source->{source} =~ m/\Q$string\E/
+    if ($source->{source} eq $string
 	|| (exists $source->{maintainer}
-	    && $source->{maintainer} =~ m/\Q$string\E/))
+	    && $source->{maintainer} =~ m/\b\Q$string\E\b/))
     {
 	printf("%s (%s to %s)\n", $source->{source},
 	    $source->{'old-version'}, $source->{'new-version'});

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



More information about the devscripts-devel mailing list