]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/binary.py
int()
[dak.git] / daklib / binary.py
index fe7bec8abba37e391861171c78f913550877f1b9..80805276c4ebcef33d7a45564b944606905cdaa4 100755 (executable)
@@ -72,10 +72,9 @@ class Binary(object):
         if we were given a reject function, send the reject message,
         otherwise send it to stderr.
         """
+        print >> sys.stderr, message
         if self.wrapped_reject:
             self.wrapped_reject(message)
-        else:
-            print >> sys.stderr, message
 
     def __del__(self):
         """
@@ -168,11 +167,11 @@ class Binary(object):
 
         @return True if the deb is valid and contents were imported
         """
+        result = False
         rejected = not self.valid_deb()
         if not rejected:
             self.__unpack()
 
-            result = False
 
             cwd = os.getcwd()
             if not rejected and self.tmpdir: