Mercurial > treepkg
comparison 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 |
comparison
equal
deleted
inserted
replaced
292:0542181b8452 | 293:faeeac2c4c71 |
---|---|
76 logging.info("Revision %s has not been packaged yet", | 76 logging.info("Revision %s has not been packaged yet", |
77 revision) | 77 revision) |
78 self.tag_url = tag_url | 78 self.tag_url = tag_url |
79 self.tag_revision = tag_revision | 79 self.tag_revision = tag_revision |
80 tag_date, tag_change_count = self.tag_pkg_parameters(tag_url) | 80 tag_date, tag_change_count = self.tag_pkg_parameters(tag_url) |
81 pkg_revision = self.debrevision_prefix + str(tag_change_count) | 81 pkg_revision = (self.pkg_revision_template |
82 % dict(pkg_revision=tag_change_count)) | |
82 return self.revision_packager_cls(self, tag=tag_url, | 83 return self.revision_packager_cls(self, tag=tag_url, |
83 pkg_revision=pkg_revision, | 84 pkg_revision=pkg_revision, |
84 pkg_date=tag_date, | 85 pkg_date=tag_date, |
85 *revision) | 86 *revision) |
86 else: | 87 else: |