comparison test/test_readconfig.py @ 299:c32dc72ba979

Turn the SourcePackager class attribute pkg_basename into a per-track configuratin option. The default value is the track name, as in most cases they're identical anyway. For now, the change is compatible with old SourcePackager subclasses that override pkg_basename.
author Bernhard Herzog <bh@intevation.de>
date Fri, 20 Nov 2009 21:06:10 +0000
parents 4dd6ec3a1151
children e82fb08781a2
comparison
equal deleted inserted replaced
298:e9d5b44f8f52 299:c32dc72ba979
34 [treepkg] 34 [treepkg]
35 instructions_file: %(treepkg_dir)s/instructions 35 instructions_file: %(treepkg_dir)s/instructions
36 check_interval: 3600 36 check_interval: 3600
37 37
38 [pkg_simple] 38 [pkg_simple]
39 pkg_basename: simple1
39 svn_url: svn://example.com/%(name)s/trunk 40 svn_url: svn://example.com/%(name)s/trunk
40 base_dir: %(tracks_dir)s/%(name)s 41 base_dir: %(tracks_dir)s/%(name)s
41 packager_class: readconfig_test.%(name)s 42 packager_class: readconfig_test.%(name)s
42 handle_dependencies: True 43 handle_dependencies: True
43 signing_key_id: abcd1234 44 signing_key_id: abcd1234
87 deb_build_options="parallel=2", 88 deb_build_options="parallel=2",
88 pkg_revision_template="treepkg%(pkg_revision)d", 89 pkg_revision_template="treepkg%(pkg_revision)d",
89 handle_dependencies=False, 90 handle_dependencies=False,
90 packager_class="readconfig_test.extraargs", 91 packager_class="readconfig_test.extraargs",
91 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", 92 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc",
93 # pkg_basename is passed as an empty string by default.
94 # The PackageTrack an empty pkg_basename it with the
95 # value of name
96 pkg_basename="",
92 root_cmd=['sudo'], 97 root_cmd=['sudo'],
93 signing_key_id="", 98 signing_key_id="",
94 svn_url="svn://example.com/extraargs/trunk", 99 svn_url="svn://example.com/extraargs/trunk",
95 rules_svn_url="file:///tmp/my-debian-repository", 100 rules_svn_url="file:///tmp/my-debian-repository",
96 orig_tarball=("/home/builder/mill/" 101 orig_tarball=("/home/builder/mill/"
103 rules_svn_url="", 108 rules_svn_url="",
104 pkg_revision_template="treepkg%(pkg_revision)d", 109 pkg_revision_template="treepkg%(pkg_revision)d",
105 handle_dependencies=True, 110 handle_dependencies=True,
106 packager_class="readconfig_test.simple", 111 packager_class="readconfig_test.simple",
107 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc", 112 pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc",
113 pkg_basename="simple1",
108 root_cmd=['sudo'], 114 root_cmd=['sudo'],
109 signing_key_id="abcd1234", 115 signing_key_id="abcd1234",
110 svn_url="svn://example.com/simple/trunk")]) 116 svn_url="svn://example.com/simple/trunk")])
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)