]> git.decadent.org.uk Git - dak.git/commitdiff
print error immediately
authorMike O'Connor <stew@vireo.org>
Fri, 13 Mar 2009 16:42:45 +0000 (12:42 -0400)
committerMike O'Connor <stew@vireo.org>
Fri, 13 Mar 2009 16:42:45 +0000 (12:42 -0400)
Signed-off-by: Mike O'Connor <stew@vireo.org>
daklib/binary.py

index 18079b540699dd56120956e050f7c69f12c711ff..fe7bec8abba37e391861171c78f913550877f1b9 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: