comparison 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
comparison
equal deleted inserted replaced
306:163f0d8b64eb 307:5f442b0cf3a4
39 parser.set_defaults(track_options=dict()) 39 parser.set_defaults(track_options=dict())
40 parser.add_option("--once", action="store_true", 40 parser.add_option("--once", action="store_true",
41 help=("Check the packagers only once and exit afterwards." 41 help=("Check the packagers only once and exit afterwards."
42 " Without this option, the tree packager will" 42 " Without this option, the tree packager will"
43 " check periodically.")) 43 " check periodically."))
44 parser.add_option("--stop-on-error", action="store_true",
45 help=("Stop the tree packager when a packaging"
46 " attempt fails."))
44 parser.add_option("--revision", 47 parser.add_option("--revision",
45 help=("SVN revision to update to before attempting" 48 help=("SVN revision to update to before attempting"
46 " to package.")) 49 " to package."))
47 parser.add_option("--no-svn-update", action="store_true", 50 parser.add_option("--no-svn-update", action="store_true",
48 help=("Do not update the SVN workingcopy before" 51 help=("Do not update the SVN workingcopy before"
78 if packager_opts: 81 if packager_opts:
79 group = PackagerGroup([create_package_track(**opts) 82 group = PackagerGroup([create_package_track(**opts)
80 for opts in packager_opts], 83 for opts in packager_opts],
81 revision=options.revision, 84 revision=options.revision,
82 do_svn_update=not options.no_svn_update, 85 do_svn_update=not options.no_svn_update,
86 stop_on_error=options.stop_on_error,
83 **treepkg_opts) 87 **treepkg_opts)
84 if options.once: 88 if options.once:
85 group.check_package_tracks() 89 group.check_package_tracks()
86 else: 90 else:
87 group.run() 91 group.run()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)