[Treepkg-commits] r291 - branches/scratchbox/recipes/kde/maemo

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Apr 19 09:42:34 CEST 2010


Author: bricks
Date: 2010-04-19 09:42:33 +0200 (Mon, 19 Apr 2010)
New Revision: 291

Modified:
   branches/scratchbox/recipes/kde/maemo/generic.py
Log:
updated determine_package_version for maemo packager
added maemo_version


Modified: branches/scratchbox/recipes/kde/maemo/generic.py
===================================================================
--- branches/scratchbox/recipes/kde/maemo/generic.py	2010-04-16 13:54:09 UTC (rev 290)
+++ branches/scratchbox/recipes/kde/maemo/generic.py	2010-04-19 07:42:33 UTC (rev 291)
@@ -23,10 +23,18 @@
         super(SourcePackager, self).__init__(*args, **kw)
         self.enterprise_version = (self.parent.pkg_date + "."
                                    + str(self.revision))
+        self.maemo_version =  "%s.%s.%s-0maemo1" % (self.revision, 
+                              self.parent.rules_revision, self.parent.pkg_date)
 
     def determine_package_version(self, directory):
         enterprise_version = self.enterprise_version
-        return self.track.version_template % dict(revision=self.revision)
+        maemo_version = self.maemo_version
+        revision = self.revision
+        rules_revision = self.parent.rules_revision
+        pkg_revision = self.parent.pkg_revision
+        pkg_date = self.parent.pkg_date
+    
+        return self.track.version_template % locals()
 
     def prepare_sources_for_tarball(self, pkgbasedir, pkgbaseversion):
         self.update_version_numbers(pkgbasedir)



More information about the Treepkg-commits mailing list