[Apt-listbugs-commits] [apt-listbugs] 01/01: enhance reading of ignore_bugs files

Francesco Poli frx-guest at moszumanska.debian.org
Sat Feb 22 16:54:55 UTC 2014


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

frx-guest pushed a commit to branch master
in repository apt-listbugs.

commit 24d2ab748b29e843fb262fab51b0003b11997f92
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Sat Feb 22 17:52:24 2014 +0100

    enhance reading of ignore_bugs files
---
 debian/changelog          | 3 +++
 lib/apt-listbugs/logic.rb | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a1a2927..b7eaf03 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,9 @@ apt-listbugs (0.1.13) UNRELEASED; urgency=medium
     misinterpreted as an "h" or "p" answer
   * refreshed the .pot file for internationalization
      - switched to rxgettext for the .pot file generation 
+  * enhanced reading of ignore_bugs files: each line is considered a comment,
+    if its first nonwhitespace character is '#'; otherwise, the first word
+    is considered a package name or bug number to be ignored.
 
  -- Francesco Poli (wintermute) <invernomuto at paranoici.org>  Sat, 01 Feb 2014 15:43:19 +0100
 
diff --git a/lib/apt-listbugs/logic.rb b/lib/apt-listbugs/logic.rb
index e76af47..d73051c 100644
--- a/lib/apt-listbugs/logic.rb
+++ b/lib/apt-listbugs/logic.rb
@@ -309,10 +309,10 @@ class IgnoreBugs < Array
     if FileTest.exist?(path)
       begin
         open(path).each { |bug|
-          if /\s*#/ =~ bug
+          if /^\s*#/ =~ bug
             next
           end
-          if /\s*(\S+)/ =~ bug
+          if /^\s*(\S+)/ =~ bug
             self << $1
           end
         }

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



More information about the Apt-listbugs-commits mailing list