From 077af4e7f06d25345071bb62603886342ee2d6d6 Mon Sep 17 00:00:00 2001 From: Michael 'Mickey' Lauer Date: Tue, 27 Apr 2004 07:27:17 +0000 Subject: [PATCH] Import patch tmpfile --- bin/oemake | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/oemake b/bin/oemake index 3992a0d..d2d9462 100644 --- a/bin/oemake +++ b/bin/oemake @@ -336,8 +336,14 @@ if __name__ == "__main__": oe.event.fire(oe.event.BuildCompleted(buildname, pkgs_to_build, make.cfg)) print "Build statistics:" - print " Dependencies not satisfied: %d" % __stats["deps"] - print " Attempted builds: %d (%d failed)" % (__stats["attempt"], __stats["fail"]) + print " Attempted builds: %d" % __stats["attempt"] + if __stats["fail"] != 0: + print " Failed builds: %d" % __stats["fail"] + if __stats["deps"] != 0: + print " Dependencies not satisfied: %d" % __stats["deps"] + if __stats["fail"] != 0 or __stats["deps"] != 0: + sys.exit(1) + sys.exit(0) except KeyboardInterrupt: print "\nNOTE: KeyboardInterrupt - Build not completed." -- 2.7.4