[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 4/5] Add doc why we are monkeypatching commands.getstatusoutput



Signed-off-by: Chris Lamb <lamby@debian.org>
---
 daklib/utils.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/daklib/utils.py b/daklib/utils.py
index 457e093..788bcd4 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,
-- 
1.6.3.3



Reply to: