X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=50a0682dbedcfac93cb555757a8e20275e7b7ef4;hb=3a541681a420745b36e6b6d025ef6b649c03e7c8;hp=0c628fb4a67b0479de35d2136125077c827d6738;hpb=2738598ffe0f2913c49bc6fc6d1612f4e81bb26f;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 0c628fb4..50a0682d 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -62,8 +62,9 @@ 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. +# Monkeypatch commands.getstatusoutput as it may not return the correct exit +# code in lenny's Python. This also affects commands.getoutput and +# commands.getstatus. def dak_getstatusoutput(cmd): pipe = subprocess.Popen(cmd, shell=True, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)