Mercurial > treepkg
comparison recipes/kde/enterprise/kde_l10n.py @ 381:51c447a6792e
merged maemo packager into enterprise packager
maemo generic is obsolete with builder_cls: sbdmock setting
maemo sepecific kde_l10n packager are still necessary
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Wed, 07 Jul 2010 09:33:49 +0000 |
parents | d0304bc2d378 |
children | d85af9a6c93a |
comparison
equal
deleted
inserted
replaced
380:2995f3042f82 | 381:51c447a6792e |
---|---|
1 # Copyright (C) 2007, 2008, 2009 by Intevation GmbH | 1 # Copyright (C) 2007 - 2010 by Intevation GmbH |
2 # Authors: | 2 # Authors: |
3 # Bernhard Herzog <bh@intevation.de> | 3 # Bernhard Herzog <bh@intevation.de> |
4 # Bjoern Ricks <bjoern.ricks@intevation.de> | |
4 # | 5 # |
5 # This program is free software under the GPL (>=v2) | 6 # This program is free software under the GPL (>=v2) |
6 # Read the file COPYING coming with the software for details. | 7 # Read the file COPYING coming with the software for details. |
7 | 8 |
8 import os | 9 import os |
61 self.enterprise_version = (time.strftime("%Y%m%d", time.localtime()) | 62 self.enterprise_version = (time.strftime("%Y%m%d", time.localtime()) |
62 + "." + str(self.revision)) | 63 + "." + str(self.revision)) |
63 | 64 |
64 def determine_package_version(self, directory): | 65 def determine_package_version(self, directory): |
65 enterprise_version = self.enterprise_version | 66 enterprise_version = self.enterprise_version |
67 revision = self.revision | |
68 rules_revision = self.parent.rules_revision | |
69 pkg_revision = self.parent.pkg_revision | |
70 pkg_date = self.parent.pkg_date | |
71 | |
66 return self.track.version_template % locals() | 72 return self.track.version_template % locals() |
67 | 73 |
68 def create_l10n_de_tarball(self, pkgbasedir, pkgbaseversion): | 74 def create_l10n_de_tarball(self, pkgbasedir, pkgbaseversion): |
69 logging.info("Creating kde-l10n-de tarball") | 75 logging.info("Creating kde-l10n-de tarball") |
70 de_tarball = os.path.join(self.work_dir, | 76 de_tarball = os.path.join(self.work_dir, |