comparison recipes/kde/enterprise/kde_l10n.py @ 499:e44c9c3f69f8

consolidate enterprise packagers
author Bjoern Ricks <bricks@intevation.de>
date Wed, 20 Oct 2010 07:51:53 +0000
parents d85af9a6c93a
children
comparison
equal deleted inserted replaced
498:1c8cc563ac80 499:e44c9c3f69f8
57 """ 57 """
58 58
59 59
60 def __init__(self, *args, **kw): 60 def __init__(self, *args, **kw):
61 super(SourcePackager, self).__init__(*args, **kw) 61 super(SourcePackager, self).__init__(*args, **kw)
62 self.enterprise_version = (time.strftime("%Y%m%d", time.localtime())
63 + "." + str(self.revision))
64
65 def determine_package_version(self, directory):
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
72 return super(SourcePackager, self).determine_package_version($
73 directory, locals())
74 62
75 def create_l10n_de_tarball(self, pkgbasedir, pkgbaseversion): 63 def create_l10n_de_tarball(self, pkgbasedir, pkgbaseversion):
76 logging.info("Creating kde-l10n-de tarball") 64 logging.info("Creating kde-l10n-de tarball")
77 de_tarball = os.path.join(self.work_dir, 65 de_tarball = os.path.join(self.work_dir,
78 "kde-l10n-de-" + pkgbaseversion + ".tar.bz2") 66 "kde-l10n-de-" + pkgbaseversion + ".tar.bz2")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)