Mercurial > treepkg
comparison initpbuilder.py @ 52:78cf5f6778ec
Rename 'packagel ine' -> 'package track'
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 03 Apr 2007 20:33:33 +0200 |
parents | aed3869ac04a |
children |
comparison
equal
deleted
inserted
replaced
50:225206553bba | 52:78cf5f6778ec |
---|---|
15 | 15 |
16 import sys | 16 import sys |
17 import os | 17 import os |
18 from optparse import OptionParser | 18 from optparse import OptionParser |
19 | 19 |
20 from treepkg.packager import create_package_line, PackagerGroup | 20 from treepkg.packager import create_package_track, PackagerGroup |
21 from treepkg.readconfig import read_config | 21 from treepkg.readconfig import read_config |
22 from treepkg.util import ensure_directory, writefile | 22 from treepkg.util import ensure_directory, writefile |
23 from treepkg.run import call | 23 from treepkg.run import call |
24 | 24 |
25 | 25 |
113 if options.mirrorsite is None: | 113 if options.mirrorsite is None: |
114 print >>sys.stderr, "Missing required option --mirrorsite" | 114 print >>sys.stderr, "Missing required option --mirrorsite" |
115 sys.exit(1) | 115 sys.exit(1) |
116 | 116 |
117 treepkg_opts, packager_opts = read_config(options.config_file) | 117 treepkg_opts, packager_opts = read_config(options.config_file) |
118 group = PackagerGroup([create_package_line(**opts) | 118 group = PackagerGroup([create_package_track(**opts) |
119 for opts in packager_opts], | 119 for opts in packager_opts], |
120 **treepkg_opts) | 120 **treepkg_opts) |
121 pkg_line = group.get_package_lines()[0] | 121 track = group.get_package_tracks()[0] |
122 init_pbuilder(pkg_line.pbuilderrc, | 122 init_pbuilder(track.pbuilderrc, |
123 distribution=options.distribution, | 123 distribution=options.distribution, |
124 mirrorsite=options.mirrorsite, | 124 mirrorsite=options.mirrorsite, |
125 extramirrors=options.othermirror, | 125 extramirrors=options.othermirror, |
126 root_cmd=pkg_line.root_cmd) | 126 root_cmd=track.root_cmd) |
127 | 127 |
128 main() | 128 main() |