From: Chris Lamb Date: Wed, 28 Oct 2009 08:50:38 +0000 (+0000) Subject: Add doc why we are monkeypatching commands.getstatusoutput X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6b4f022e6cd1a32a675acbe14f1345347e74724;p=dak Add doc why we are monkeypatching commands.getstatusoutput Signed-off-by: Chris Lamb --- diff --git a/daklib/utils.py b/daklib/utils.py index 457e093c..788bcd41 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -63,6 +63,8 @@ key_uid_email_cache = {} #: Cache for email addresses from gpg key uids known_hashes = [("sha1", apt_pkg.sha1sum, (1, 8)), ("sha256", apt_pkg.sha256sum, (1, 8))] #: hashes we accept for entries in .changes/.dsc +# Monkeypatch commands.getstatusoutput as it returns a "0" exit code in +# all situations under lenny's Python. import commands def dak_getstatusoutput(cmd): pipe = subprocess.Popen(cmd, shell=True, universal_newlines=True,