[Apt-listbugs-commits] [apt-listbugs] 10/11: do not misinterpret strings containing "h" or "p"

Francesco Poli frx-guest at moszumanska.debian.org
Sat Feb 15 15:26:48 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 13434221a58d758b61f120a4ba0a234a64120d5e
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Wed Feb 12 23:44:44 2014 +0100

    do not misinterpret strings containing "h" or "p"
    
    In the handling of the answer to the question on how to proceed,
    any string containing the letter "h" or "p" was misinterpreted
    as the "h" or "p" command...
    This is now fixed.
---
 debian/changelog          | 3 +++
 lib/apt-listbugs/logic.rb | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index acf40d8..7658a78 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,9 @@ apt-listbugs (0.1.13) UNRELEASED; urgency=medium
      - enhanced the explanation of APT_HOOK_INFO_FD
      - clarified the explanation of the severity filter option
   * updated gitweb URL in man page and in debian/copyright file
+  * fixed another bug in the handling of the user's answer to the question on
+    how to proceed: an answer containing the letter "h" or "p" is no longer
+    misinterpreted as an "h" or "p" answer
 
  -- 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 f46944d..e76af47 100644
--- a/lib/apt-listbugs/logic.rb
+++ b/lib/apt-listbugs/logic.rb
@@ -453,7 +453,7 @@ class Viewer
           puts bugs if $DEBUG
           display_bugs_as_html(bugs, cur_pkgs, new_pkgs) if @config.browser != nil
 
-        when /(h|p)/
+        when /^(h|p)$/
           cmd = $1
           if cmd == "h"
             @config.frontend.puts DeprecatedWarningHeader

-- 
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