Mercurial > treepkg
comparison bin/runtreepkg.py @ 190:e83db4482aab
Add runtreepkg.py command line option --no-svn-update to inhibit updates
of the working copies. This can be useful if e.g. the svn server is
down. Adapt the test cases.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 30 Jul 2008 19:00:31 +0000 |
parents | 2630a1c18816 |
children | 94fb3f3ab58b |
comparison
equal
deleted
inserted
replaced
189:44efabf551e0 | 190:e83db4482aab |
---|---|
1 #! /usr/bin/python2.4 | 1 #! /usr/bin/python2.4 |
2 # Copyright (C) 2007 by Intevation GmbH | 2 # Copyright (C) 2007, 2008 by Intevation GmbH |
3 # Authors: | 3 # Authors: |
4 # Bernhard Herzog <bh@intevation.de> | 4 # Bernhard Herzog <bh@intevation.de> |
5 # | 5 # |
6 # This program is free software under the GPL (>=v2) | 6 # This program is free software under the GPL (>=v2) |
7 # Read the file COPYING coming with the software for details. | 7 # Read the file COPYING coming with the software for details. |
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", | 36 parser.add_option("--revision", |
37 help=("SVN revision to update to before attempting" | 37 help=("SVN revision to update to before attempting" |
38 " to package.")) | 38 " to package.")) |
39 parser.add_option("--no-svn-update", action="store_true", | |
40 help=("Do not update the SVN workingcopy before" | |
41 " attempting to package.")) | |
39 return parser.parse_args() | 42 return parser.parse_args() |
40 | 43 |
41 def main(): | 44 def main(): |
42 options, args = parse_commandline() | 45 options, args = parse_commandline() |
43 | 46 |
57 | 60 |
58 if packager_opts: | 61 if packager_opts: |
59 group = PackagerGroup([create_package_track(**opts) | 62 group = PackagerGroup([create_package_track(**opts) |
60 for opts in packager_opts], | 63 for opts in packager_opts], |
61 revision=options.revision, | 64 revision=options.revision, |
65 do_svn_update=not options.no_svn_update, | |
62 **treepkg_opts) | 66 **treepkg_opts) |
63 if options.once: | 67 if options.once: |
64 group.check_package_tracks() | 68 group.check_package_tracks() |
65 else: | 69 else: |
66 group.run() | 70 group.run() |