[Apt-listbugs-commits] [apt-listbugs] 02/04: enhance debugging messages

Francesco Poli frx-guest at alioth.debian.org
Fri Aug 30 17:41:55 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 8f7b3d9729fba65a009d440f86d800e6f8d6521b
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Mon Aug 26 22:30:43 2013 +0200

    enhance debugging messages
---
 apt-listbugs |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/apt-listbugs b/apt-listbugs
index 2f234b9..671d3eb 100755
--- a/apt-listbugs
+++ b/apt-listbugs
@@ -303,10 +303,10 @@ holdpkgs = {}
 case config.command
 when "apt"
   # parse apt VERSION 2 input.
-  puts if $DEBUG
-  puts "Pre-Install-Pkgs hook info:" if $DEBUG
   state=1
   apt_hook_fd = ENV["APT_HOOK_INFO_FD"]
+  puts if $DEBUG
+  puts "Preparing to read info from file descriptor \"#{apt_hook_fd}\"" if $DEBUG
   if apt_hook_fd.nil?
     $stderr.print _("E: APT_HOOK_INFO_FD is undefined.\n")
     exit 1
@@ -322,6 +322,8 @@ when "apt"
     $stderr.puts sprintf(_("E: Cannot read from file descriptor %d"), apt_hook_fd)
     exit 1
   end
+  puts if $DEBUG
+  puts "Pre-Install-Pkgs hook info:" if $DEBUG
   apt_hook_stream.each { |pkg|
     pkg=pkg.rstrip
     case state

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