Mercurial > treepkg > treepkg
diff treepkg/readconfig.py @ 4:fee641fec94e
Separate the kolab specific parts.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Fri, 09 Mar 2007 12:26:01 +0100 |
parents | e6a9f4037f68 |
children | 574506a022f6 |
line wrap: on
line diff
--- a/treepkg/readconfig.py Thu Mar 08 20:23:28 2007 +0100 +++ b/treepkg/readconfig.py Fri Mar 09 12:26:01 2007 +0100 @@ -11,10 +11,12 @@ import shlex from ConfigParser import SafeConfigParser, NoOptionError +import util + defaults = dict(root_cmd="sudo") packager_desc = [ - "name", "base_dir", "svn_url", + "name", "base_dir", "svn_url", "packager_class", ("root_cmd", shlex.split), "deb_email", "deb_fullname", ] @@ -59,7 +61,10 @@ packagers = [] for section in parser.sections(): if section.startswith("pkg_"): - packagers.append(read_config_section(parser, section, packager_desc, + packager_class = parser.get(section, "packager_class") + module = util.import_dotted_name(packager_class) + desc = packager_desc + module.AssemblyLine.extra_config_desc + packagers.append(read_config_section(parser, section, desc, dict(name=section[4:]))) # main config