changeset 450:5c06e0a0d329

Enable more variables to be used in the version template.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 11 Aug 2010 07:45:26 +0000
parents c1d5a6cb5cb0
children eacfd3744d16
files treepkg/packager.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/packager.py	Tue Aug 10 13:46:11 2010 +0000
+++ b/treepkg/packager.py	Wed Aug 11 07:45:26 2010 +0000
@@ -59,7 +59,11 @@
         The default implementation simply returns the revision converted
         to a string.
         """
-        return self.track.version_template % dict(revision=self.revision)
+        revision = self.revision
+        rules_revision = self.parent.rules_revision
+        pkg_revision = self.parent.pkg_revision
+        pkg_date = time.strftime("%Y%m%d", time.localtime())
+        return self.track.version_template % locals()
 
     def export_sources(self):
         """Export the sources from the subversion working directory
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)