Mercurial > treepkg
comparison runtreepkg.py @ 7:96f4f58c62b5
Rename the Packager class to PackagerGroup
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Fri, 09 Mar 2007 14:33:50 +0100 |
parents | fee641fec94e |
children | 574506a022f6 |
comparison
equal
deleted
inserted
replaced
6:38330d45047f | 7:96f4f58c62b5 |
---|---|
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, Packager | 15 from treepkg.packager import create_packager, 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 packager = Packager([create_packager(**opts) for opts in packager_opts], | 40 group = PackagerGroup([create_packager(**opts) for opts in packager_opts], |
41 **treepkg_opts) | 41 **treepkg_opts) |
42 packager.run() | 42 group.run() |
43 | 43 |
44 main() | 44 main() |