From: Mike O'Connor Date: Fri, 13 Mar 2009 16:42:45 +0000 (-0400) Subject: print error immediately X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4ee1e36d0ff52d50dd3c1daa722131df2e62ee25;p=dak.git print error immediately Signed-off-by: Mike O'Connor --- diff --git a/daklib/binary.py b/daklib/binary.py index 18079b54..fe7bec8a 100755 --- a/daklib/binary.py +++ b/daklib/binary.py @@ -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: