From 4ee1e36d0ff52d50dd3c1daa722131df2e62ee25 Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Fri, 13 Mar 2009 12:42:45 -0400 Subject: [PATCH] print error immediately Signed-off-by: Mike O'Connor --- daklib/binary.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.39.2