Mercurial > treepkg
comparison runtreepkg.py @ 8:574506a022f6
Rename AssemblyLine to PackageLine
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Fri, 09 Mar 2007 14:48:58 +0100 |
parents | 96f4f58c62b5 |
children | 2bfb84bc4350 |
comparison
equal
deleted
inserted
replaced
7:96f4f58c62b5 | 8:574506a022f6 |
---|---|
10 | 10 |
11 import os | 11 import os |
12 import logging | 12 import logging |
13 from optparse import OptionParser | 13 from optparse import OptionParser |
14 | 14 |
15 from treepkg.packager import create_packager, PackagerGroup | 15 from treepkg.packager import create_package_line, PackagerGroup |
16 from treepkg.readconfig import read_config | 16 from treepkg.readconfig import read_config |
17 | 17 |
18 def initialize_logging(): | 18 def initialize_logging(): |
19 """Initializes the logging system""" | 19 """Initializes the logging system""" |
20 root = logging.getLogger() | 20 root = logging.getLogger() |
35 options, args = parse_commandline() | 35 options, args = parse_commandline() |
36 | 36 |
37 initialize_logging() | 37 initialize_logging() |
38 | 38 |
39 treepkg_opts, packager_opts = read_config(options.config_file) | 39 treepkg_opts, packager_opts = read_config(options.config_file) |
40 group = PackagerGroup([create_packager(**opts) for opts in packager_opts], | 40 group = PackagerGroup([create_package_line(**opts) |
41 for opts in packager_opts], | |
41 **treepkg_opts) | 42 **treepkg_opts) |
42 group.run() | 43 group.run() |
43 | 44 |
44 main() | 45 main() |