comparison bin/runtreepkg.py @ 81:2630a1c18816

Add command line option --revision to package a specific revision.
author Bernhard Herzog <bh@intevation.de>
date Fri, 11 May 2007 13:01:18 +0000
parents 9a602d8eaa60
children e83db4482aab
comparison
equal deleted inserted replaced
80:0af2fa3790e0 81:2630a1c18816
31 parser = create_parser() 31 parser = create_parser()
32 parser.add_option("--once", action="store_true", 32 parser.add_option("--once", action="store_true",
33 help=("Check the packagers only once and exit afterwards." 33 help=("Check the packagers only once and exit afterwards."
34 " Without this option, the tree packager will" 34 " Without this option, the tree packager will"
35 " check periodically.")) 35 " check periodically."))
36 parser.add_option("--revision",
37 help=("SVN revision to update to before attempting"
38 " to package."))
36 return parser.parse_args() 39 return parser.parse_args()
37 40
38 def main(): 41 def main():
39 options, args = parse_commandline() 42 options, args = parse_commandline()
40 43
53 print >>sys.stderr, "No package tracks found named %r" % name 56 print >>sys.stderr, "No package tracks found named %r" % name
54 57
55 if packager_opts: 58 if packager_opts:
56 group = PackagerGroup([create_package_track(**opts) 59 group = PackagerGroup([create_package_track(**opts)
57 for opts in packager_opts], 60 for opts in packager_opts],
61 revision=options.revision,
58 **treepkg_opts) 62 **treepkg_opts)
59 if options.once: 63 if options.once:
60 group.check_package_tracks() 64 group.check_package_tracks()
61 else: 65 else:
62 group.run() 66 group.run()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)