[Apt-listbugs-commits] [apt-listbugs] 01/01: also catch Errno::EBADF in apt mode

Francesco Poli frx-guest at moszumanska.debian.org
Mon Jun 2 17:36:21 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 e501891fc6117745e9bc53da7ff237ccb48a6bd7
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Mon Jun 2 19:34:35 2014 +0200

    also catch Errno::EBADF in apt mode
---
 apt-listbugs     | 2 +-
 debian/changelog | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/apt-listbugs b/apt-listbugs
index 90cd914..94d66e5 100755
--- a/apt-listbugs
+++ b/apt-listbugs
@@ -369,7 +369,7 @@ when "apt"
   end
   begin
     apt_hook_stream = IO.open(apt_hook_fd, 'r')
-  rescue Errno::ENOENT
+  rescue Errno::ENOENT, Errno::EBADF
     $stderr.puts _("E: ") + sprintf(_("Cannot read from file descriptor %d"), apt_hook_fd)
     exit 1
   end
diff --git a/debian/changelog b/debian/changelog
index 3bc069e..7cc99d1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ apt-listbugs (0.1.14) UNRELEASED; urgency=medium
     where standard output is not a tty (this implies that unattended
     installations/upgrades will automatically pin buggy packages!)
   * enhanced internationalization of error and warning messages
+  * enhanced error handling (also catch Errno::EBADF in apt mode)
 
  -- Francesco Poli (wintermute) <invernomuto at paranoici.org>  Sun, 11 May 2014 16:45:18 +0200
 

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