[Treepkg-commits] r514 - trunk/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 8 15:02:21 CET 2011


Author: bricks
Date: 2011-03-08 15:02:19 +0100 (Tue, 08 Mar 2011)
New Revision: 514

Modified:
   trunk/treepkg/packager.py
Log:
add short_rules_revision template


Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py	2011-03-08 12:06:49 UTC (rev 513)
+++ trunk/treepkg/packager.py	2011-03-08 14:02:19 UTC (rev 514)
@@ -353,11 +353,17 @@
         self.track = track
         self.revision = revision
         self.rules_revision = rules_revision
+        self.short_rules_revision = rules_revision
 
+        # fixme: short_rules_revision should be determined by scm
+        if len(self.short_rules_revision) > 7:
+            self.short_rules_revision = self.short_rules_revision[:7]
+
         if pkg_revision is None:
             pkg_revision = (self.track.pkg_revision_template
                             % dict(pkg_revision=1,
-                                   rules_revision=rules_revision))
+                                   rules_revision=rules_revision,
+                                   short_rules_revision=short_rules_revision))
         self.pkg_revision = pkg_revision
 
         self.base_dir = self.track.pkg_dir_for_revision(self.revision,



More information about the Treepkg-commits mailing list