[Apt-listbugs-commits] [apt-listbugs] 05/06: fix grep /etc/apt/preferences

Francesco Poli frx-guest at alioth.debian.org
Fri Oct 4 17:19:14 UTC 2013


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 114ca5a0f0997f89d0c1bed5348c3e2c58351723
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Fri Oct 4 00:44:43 2013 +0200

    fix grep /etc/apt/preferences
---
 lib/apt-listbugs/logic.rb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/apt-listbugs/logic.rb b/lib/apt-listbugs/logic.rb
index 9f5f927..fedc02b 100644
--- a/lib/apt-listbugs/logic.rb
+++ b/lib/apt-listbugs/logic.rb
@@ -464,7 +464,7 @@ class Viewer
           if cmd == "p"
             bugs.each { |bug|
               # TODO: need to parse preferences correctly?
-              if ! system("grep -q \"Package: #{bug.pkg_key}\" /etc/apt/preferences 2> /dev/null")
+              if ! system("grep -q \"^Package: #{bug.pkg_key} *$\" /etc/apt/preferences 2> /dev/null")
                 pkgs[bug.pkg_key] = 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