]> git.decadent.org.uk Git - dak.git/commitdiff
Merge commit 'stew/content_generation' into merge
authorJoerg Jaspert <joerg@debian.org>
Fri, 13 Mar 2009 16:43:48 +0000 (17:43 +0100)
committerJoerg Jaspert <joerg@debian.org>
Fri, 13 Mar 2009 16:43:48 +0000 (17:43 +0100)
* commit 'stew/content_generation':
  result unassigned
  print error immediately

Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/binary.py

index 18079b540699dd56120956e050f7c69f12c711ff..06f773c91e70e2fa9856393125294dbe4091867d 100755 (executable)
@@ -99,6 +99,7 @@ class Binary(object):
             (result, output) = commands.getstatusoutput(cmd)
             if result != 0:
                 rejected = True
+                print("%s: 'ar t' invocation failed." % (self.filename))
                 self.reject("%s: 'ar t' invocation failed." % (self.filename))
                 self.reject(utils.prefix_multi_line_string(output, " [ar output:] "))
             self.chunks = output.split('\n')
@@ -117,6 +118,7 @@ class Binary(object):
                 cmd = "ar x %s %s %s" % (os.path.join(cwd,self.filename), self.chunks[1], self.chunks[2])
                 (result, output) = commands.getstatusoutput(cmd)
                 if result != 0:
+                    print("%s: '%s' invocation failed." % (self.filename, cmd))
                     self.reject("%s: '%s' invocation failed." % (self.filename, cmd))
                     self.reject(utils.prefix_multi_line_string(output, " [ar output:] "))
                 else:
@@ -166,11 +168,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: