Mercurial > treepkg
comparison recipes/kde/enterprise/kde_l10n_tags.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 | 9ec15ae12a0f |
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 |
40 | 41 |
41 # copy the source tree to a directory that's under pbuilder control so | 42 # copy the source tree to a directory that's under pbuilder control so |
42 # that it gets removed along with the build environment. Otherwise we | 43 # that it gets removed along with the build environment. Otherwise we |
43 # end up with a directory containing files that cannot be removed by | 44 # end up with a directory containing files that cannot be removed by |
44 # treepkg | 45 # treepkg |
45 workdir=/tmp/work | 46 workdir=/tmp/work-tags |
46 cp -a %(basedir)s $workdir | 47 cp -a %(basedir)s $workdir |
47 cd $workdir | 48 cd $workdir |
48 | 49 |
49 # only handle the de subdirectory | 50 # only handle the de subdirectory |
50 echo de > subdirs | 51 echo de > subdirs |
56 """ | 57 """ |
57 | 58 |
58 | 59 |
59 def __init__(self, *args, **kw): | 60 def __init__(self, *args, **kw): |
60 super(SourcePackager, self).__init__(*args, **kw) | 61 super(SourcePackager, self).__init__(*args, **kw) |
61 self.enterprise_version = (time.strftime("%Y%m%d", time.localtime()) | |
62 + "." + str(self.revision)) | |
63 | |
64 def determine_package_version(self, directory): | |
65 enterprise_version = self.enterprise_version | |
66 return self.track.version_template % locals() | |
67 | 62 |
68 def create_l10n_de_tarball(self, pkgbasedir, pkgbaseversion): | 63 def create_l10n_de_tarball(self, pkgbasedir, pkgbaseversion): |
69 logging.info("Creating kde-l10n-de tarball") | 64 logging.info("Creating kde-l10n-de tarball") |
70 de_tarball = os.path.join(self.work_dir, | 65 de_tarball = os.path.join(self.work_dir, |
71 "kde-l10n-de-" + pkgbaseversion + ".tar.bz2") | 66 "kde-l10n-de-" + pkgbaseversion + ".tar.bz2") |