Source: python-certbot
Version: 0.6.0-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the "reproducible builds" effort [0], we noticed that
python-certbot could not be built reproducibly.
Patch attached & sent upstream via https://github.com/certbot/certbot/pull/3005.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/certbot/reporter.py b/certbot/reporter.py
index d509cb0..b7b4e78 100644
--- a/certbot/reporter.py
+++ b/certbot/reporter.py
@@ -55,12 +55,14 @@ class Reporter(object):
self.messages.put(self._msg_type(priority, msg, on_crash))
logger.info("Reporting to user: %s", msg)
- def atexit_print_messages(self, pid=os.getpid()):
+ def atexit_print_messages(self, pid=None):
"""Function to be registered with atexit to print messages.
:param int pid: Process ID
"""
+ if pid is None:
+ pid = os.getpid()
# This ensures that messages are only printed from the process that
# created the Reporter.
if pid == os.getpid():
_______________________________________________
Letsencrypt-devel mailing list
[email protected]
https://lists.alioth.debian.org/mailman/listinfo/letsencrypt-devel