Mercurial > treepkg
diff initpbuilder.py @ 55:6b5f7f7575f6
merge
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 10 Apr 2007 12:07:39 +0200 |
parents | 78cf5f6778ec |
children |
line wrap: on
line diff
--- a/initpbuilder.py Tue Apr 03 16:09:35 2007 +0200 +++ b/initpbuilder.py Tue Apr 10 12:07:39 2007 +0200 @@ -17,7 +17,7 @@ import os from optparse import OptionParser -from treepkg.packager import create_package_line, PackagerGroup +from treepkg.packager import create_package_track, PackagerGroup from treepkg.readconfig import read_config from treepkg.util import ensure_directory, writefile from treepkg.run import call @@ -115,14 +115,14 @@ sys.exit(1) treepkg_opts, packager_opts = read_config(options.config_file) - group = PackagerGroup([create_package_line(**opts) + group = PackagerGroup([create_package_track(**opts) for opts in packager_opts], **treepkg_opts) - pkg_line = group.get_package_lines()[0] - init_pbuilder(pkg_line.pbuilderrc, + track = group.get_package_tracks()[0] + init_pbuilder(track.pbuilderrc, distribution=options.distribution, mirrorsite=options.mirrorsite, extramirrors=options.othermirror, - root_cmd=pkg_line.root_cmd) + root_cmd=track.root_cmd) main()