]> err.no Git - dak/commitdiff
make binary class store rejects
authorMark Hymers <mhy@debian.org>
Sat, 1 Aug 2009 15:18:55 +0000 (16:18 +0100)
committerMark Hymers <mhy@debian.org>
Sun, 9 Aug 2009 15:49:28 +0000 (16:49 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/binary.py

index 37176e86b53f696ba5ba568a32403499f2ae257b..92727951cb63a5f93b84af238ee740635a769304 100755 (executable)
@@ -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)