Mercurial > treepkg
changeset 551:d2b294e4ede7
add short_rules_revision template
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Tue, 08 Mar 2011 14:02:19 +0000 |
parents | f841b369aa80 |
children | e68c07fd849a |
files | treepkg/packager.py |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/packager.py Tue Mar 08 12:06:49 2011 +0000 +++ b/treepkg/packager.py Tue Mar 08 14:02:19 2011 +0000 @@ -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,