]> err.no Git - dak/commitdiff
Add doc why we are monkeypatching commands.getstatusoutput
authorChris Lamb <lamby@debian.org>
Wed, 28 Oct 2009 08:50:38 +0000 (08:50 +0000)
committerChris Lamb <lamby@debian.org>
Wed, 28 Oct 2009 08:50:38 +0000 (08:50 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/utils.py

index 457e093c823cc30610e7eccde28880e2bfd5145d..788bcd41eda0d44a008a516137f6513ed6ee7410 100755 (executable)
@@ -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,