[pkg-go] Patch for git-tag-pending-bugs

Martín Ferrari tincho at debian.org
Wed Feb 3 11:30:47 UTC 2016


Hey,

A while ago I adapted some of the pkg-perl scripts for the pkg-go team,
including the KGB and the git-tag-pending-bugs hooks. But only today I
notice that the latter never actually worked.

After a bit of debugging, I noticed that the regex that looks for
changes in the debian/ directory never matches the output of git as seen
in moszumanska. I don't know if this was a subtle change in git, or how
this came to be.. In any case, the following patch solves the issue for me:

--- /home/groups/pkg-perl/scripts/git-tag-pending-bugs	2014-09-27
08:00:58.279712538 +0000
+++ /home/groups/pkg-go/meta/git-tag-pending-bugs	2016-02-03
11:24:34.848063785 +0000
@@ -50,7 +51,7 @@
         $author = $1 if $line =~ /^Author: (.+) </;
     }
     elsif ( $state eq 'diff-seen' ) {
-        $has_debian_changes = 1, last if $line =~ m{^(?:\+\+\+ a|---
b)/debian/};
+        $has_debian_changes = 1, last if $line =~ m{^(?:\+\+\+|---)
(?:a|b)/debian/};
     }
     else {
         die "Should not happen [$state]";

-- 
Martín Ferrari (Tincho)



More information about the Pkg-go-maintainers mailing list