[Treepkg-commits] r410 - trunk/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Aug 11 09:45:26 CEST 2010


Author: aheinecke
Date: 2010-08-11 09:45:26 +0200 (Wed, 11 Aug 2010)
New Revision: 410

Modified:
   trunk/treepkg/packager.py
Log:
Enable more variables to be used in the version template.


Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py	2010-08-10 13:46:11 UTC (rev 409)
+++ trunk/treepkg/packager.py	2010-08-11 07:45:26 UTC (rev 410)
@@ -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



More information about the Treepkg-commits mailing list