diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-12 09:12:05 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-12 09:12:05 (GMT) |
commit | 9eaee366e144d6d9d8057923e68b81947b277d48 (patch) | |
tree | b412bf0cd4c2ce2b4e18175d600294a61df000d7 | |
parent | 5a6fdf9b08d6a94514c6acc1453f04a61b46192c (diff) |
Exit with an error when there are unbuilt modules.
Patch by Titus Brown.
-rw-r--r-- | main.py | 2 | ||||
-rwxr-xr-x | sugar-jhbuild | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -96,7 +96,7 @@ def main(args): args.append('sugar-emulator') try: - jhbuild.commands.run(command, config, args) + return jhbuild.commands.run(command, config, args) except UsageError, exc: sys.stderr.write('sugar-jhbuild %s: %s\n' % (command, str(exc))) parser.print_usage() diff --git a/sugar-jhbuild b/sugar-jhbuild index 5cd450c..0f1154c 100755 --- a/sugar-jhbuild +++ b/sugar-jhbuild @@ -16,4 +16,4 @@ if len(sys.argv) == 1 or (len(sys.argv) > 1 and sys.argv[1] == 'build'): import main -main.main(sys.argv[1:]) +sys.exit(main.main(sys.argv[1:])) |