changeset 5161:0ea349a9dcea

build.py:build: defer exit for --force-package + typo.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Tue, 17 Feb 2009 16:18:50 +0100
parents 867ecc2c61fc
children 343598807268
files gub/build.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gub/build.py	Tue Feb 17 16:13:27 2009 +0100
+++ b/gub/build.py	Tue Feb 17 16:18:50 2009 +0100
@@ -67,7 +67,7 @@
                 continue
             self.runner.stage (self.stage_message (stage))
             if (stage == 'package' and tainted
-                and options and not options.force):
+                and options and not options.force_package):
                 msg = self.expand ('''This compile has previously been interrupted.
 To ensure a repeatable build, this will not be packaged.
 
@@ -82,9 +82,7 @@
 to skip this check and risk a defective build.
 ''')
                 logging.error (msg)
-                #FIXME: throw exception.  this plays nice with
-                # buildrunner and with bin/gub, so check that.
-                sys.exit (1)
+                self.system ('false')
             try:
                 (available[stage]) ()
             except: