From: Mark Hymers Date: Sat, 1 Aug 2009 15:18:55 +0000 (+0100) Subject: make binary class store rejects X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ba5e6fded9973ad7d6275133947b73cbce867f9a;p=dak.git make binary class store rejects Signed-off-by: Mark Hymers --- diff --git a/daklib/binary.py b/daklib/binary.py index 37176e86..92727951 100755 --- a/daklib/binary.py +++ b/daklib/binary.py @@ -72,6 +72,8 @@ class Binary(object): self.tmpdir = None self.chunks = None self.wrapped_reject = reject + # Store rejects for later use + self.rejects = [] def reject(self, message): """ @@ -79,6 +81,7 @@ class Binary(object): otherwise send it to stderr. """ print >> sys.stderr, message + self.rejects.append(message) if self.wrapped_reject: self.wrapped_reject(message)