Mercurial > treepkg
changeset 308:61d1daac23d4
Move the should_stop check out of the try/except block so that it's not
skipped when a build fails.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 01 Dec 2009 11:52:07 +0000 (2009-12-01) |
parents | 5f442b0cf3a4 |
children | 3749b8285b93 |
files | treepkg/packager.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/packager.py Tue Dec 01 11:47:52 2009 +0000 +++ b/treepkg/packager.py Tue Dec 01 11:52:07 2009 +0000 @@ -655,14 +655,14 @@ if packager: packager.package() repeat = self.install_dependencies(track, packager) - if self.should_stop(): - logging.info("Received stop instruction. Stopping.") - return True except: logging.exception("An error occurred while" " checking packager track %r", track.name) if self.stop_on_error: raise + if self.should_stop(): + logging.info("Received stop instruction. Stopping.") + return True if repeat: logging.info("Built binaries needed by other tracks." " Starting over to ensure all dependencies"