diff 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
line wrap: on
line diff
--- a/test/test_readconfig.py	Fri Nov 20 20:22:34 2009 +0000
+++ b/test/test_readconfig.py	Fri Nov 20 21:06:10 2009 +0000
@@ -36,6 +36,7 @@
 check_interval: 3600
 
 [pkg_simple]
+pkg_basename: simple1
 svn_url: svn://example.com/%(name)s/trunk
 base_dir: %(tracks_dir)s/%(name)s
 packager_class: readconfig_test.%(name)s
@@ -89,6 +90,10 @@
                  handle_dependencies=False,
                  packager_class="readconfig_test.extraargs",
                  pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc",
+                 # pkg_basename is passed as an empty string by default.
+                 # The PackageTrack an empty pkg_basename it with the
+                 # value of name
+                 pkg_basename="",
                  root_cmd=['sudo'],
                  signing_key_id="",
                  svn_url="svn://example.com/extraargs/trunk",
@@ -105,6 +110,7 @@
                  handle_dependencies=True,
                  packager_class="readconfig_test.simple",
                  pbuilderrc="/home/builder/mill/pbuilder/pbuilderrc",
+                 pkg_basename="simple1",
                  root_cmd=['sudo'],
                  signing_key_id="abcd1234",
                  svn_url="svn://example.com/simple/trunk")])
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)