Mercurial > treepkg
diff bin/runtreepkg.py @ 307:5f442b0cf3a4
New command line argument --stop-on-error for runtreepkg.py and
corresponding parameter for PackagerGroup. If given, treepkg stops
immediately when a build-attempt fails.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 01 Dec 2009 11:47:52 +0000 |
parents | 97c17fb0ca19 |
children | de78084fcbce |
line wrap: on
line diff
--- a/bin/runtreepkg.py Tue Dec 01 11:42:14 2009 +0000 +++ b/bin/runtreepkg.py Tue Dec 01 11:47:52 2009 +0000 @@ -41,6 +41,9 @@ help=("Check the packagers only once and exit afterwards." " Without this option, the tree packager will" " check periodically.")) + parser.add_option("--stop-on-error", action="store_true", + help=("Stop the tree packager when a packaging" + " attempt fails.")) parser.add_option("--revision", help=("SVN revision to update to before attempting" " to package.")) @@ -80,6 +83,7 @@ for opts in packager_opts], revision=options.revision, do_svn_update=not options.no_svn_update, + stop_on_error=options.stop_on_error, **treepkg_opts) if options.once: group.check_package_tracks()