comparison test/test_packager.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 faeeac2c4c71
children 23be5ab5bc7c
comparison
equal deleted inserted replaced
298:e9d5b44f8f52 299:c32dc72ba979
39 call(cmdexpand("svn commit -q -m $commitmsg", **locals()), 39 call(cmdexpand("svn commit -q -m $commitmsg", **locals()),
40 cwd=workingcopy) 40 cwd=workingcopy)
41 41
42 42
43 class SourcePackager(treepkg.packager.SourcePackager): 43 class SourcePackager(treepkg.packager.SourcePackager):
44
45 pkg_basename = "testpkg"
46 44
47 def do_package(self): 45 def do_package(self):
48 pkgbaseversion, pkgbasedir = self.export_sources() 46 pkgbaseversion, pkgbasedir = self.export_sources()
49 47
50 pkgbasename = self.pkg_basename + "_" + pkgbaseversion 48 pkgbasename = self.pkg_basename + "_" + pkgbaseversion
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)