diff recipes/kde_enterprise_3_5/base.py @ 293:faeeac2c4c71

Replace debrevision_prefix with pkg_revision_template. Their meaning is similar, but the template is not just a prefix, it's a template for Python's %-based string formatting. This allows more complex configuration to be done with command line settings so that it's easy to do a one-off build with a package revision like "kk5.2".
author Bernhard Herzog <bh@intevation.de>
date Tue, 06 Oct 2009 13:13:04 +0000
parents 4376c5315c72
children 3fcebc5cf93c
line wrap: on
line diff
--- a/recipes/kde_enterprise_3_5/base.py	Tue Oct 06 12:55:11 2009 +0000
+++ b/recipes/kde_enterprise_3_5/base.py	Tue Oct 06 13:13:04 2009 +0000
@@ -78,7 +78,8 @@
                 self.tag_url = tag_url
                 self.tag_revision = tag_revision
                 tag_date, tag_change_count = self.tag_pkg_parameters(tag_url)
-                pkg_revision = self.debrevision_prefix + str(tag_change_count)
+                pkg_revision = (self.pkg_revision_template
+                                % dict(pkg_revision=tag_change_count))
                 return self.revision_packager_cls(self, tag=tag_url,
                                                   pkg_revision=pkg_revision,
                                                   pkg_date=tag_date,
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)