[Apt-listbugs-commits] [apt-listbugs] 01/01: fix send-hook-info with Ruby 2.0 (Closes: #740564)

Francesco Poli frx-guest at moszumanska.debian.org
Sat Mar 8 15:35:35 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 4547d15ea7558d4ead765f612b25f0fd22f073cc
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Sat Mar 8 16:29:01 2014 +0100

    fix send-hook-info with Ruby 2.0 (Closes: #740564)
---
 debian/changelog           | 5 +++++
 examples/send-hook-info.rb | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0607829..6e5dee7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,6 +26,11 @@ apt-listbugs (0.1.13) UNRELEASED; urgency=medium
     is considered a package name or bug number to be ignored.
   * downgraded the dependencies on ruby-xmlparser and ruby-httpclient to
     recommendations
+  * fixed "auxiliary script send-hook-info.rb fails to work with Ruby 2.0":
+    added an explicit file descriptor redirection to the exec call in order
+    to adapt to Ruby 2.0 stricter behavior; thanks a lot to Christian
+    Hofstaedtler for explaining what was wrong and for pointing me to the
+    appropriate documentation! (Closes: #740564)
 
  -- Francesco Poli (wintermute) <invernomuto at paranoici.org>  Sat, 01 Feb 2014 15:43:19 +0100
 
diff --git a/examples/send-hook-info.rb b/examples/send-hook-info.rb
index 6f3dc8b..57b66c3 100755
--- a/examples/send-hook-info.rb
+++ b/examples/send-hook-info.rb
@@ -6,7 +6,7 @@
 #                    "apt-listbugs apt" without the need to invoke APT)
 #
 # Copyright (C) 2013       Google Inc
-# Copyright (C) 2013       Francesco Poli <invernomuto at paranoici.org>
+# Copyright (C) 2013-2014  Francesco Poli <invernomuto at paranoici.org>
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
@@ -52,7 +52,7 @@ puts "APT_HOOK_INFO_FD set to #{ENV['APT_HOOK_INFO_FD']}"
 if Process.fork().nil?
   # the child
   write_fd.close
-  exec command
+  exec command, read_fd=>read_fd
   read_fd.close
   exit 0
 else

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