Mercurial > treepkg
comparison recipes/kde_enterprise_3_5/kdepim.py @ 159:3f2ec4314855
Changed matching string enterprise->enterprise35, so it matches
again the version strings in all three files, necessary
since kdesvn r816025 | pradeepto | 2008-06-03 06:45:13 +0200 (Di, 03 Jun 2008)Cosmetics.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 19 Jun 2008 10:13:39 +0000 |
parents | d7b3dac63ad0 |
children | 710538908609 |
comparison
equal
deleted
inserted
replaced
158:8ec9ed76d67b | 159:3f2ec4314855 |
---|---|
3 # Bernhard Herzog <bh@intevation.de> | 3 # Bernhard Herzog <bh@intevation.de> |
4 # | 4 # |
5 # This program is free software under the GPL (>=v2) | 5 # This program is free software under the GPL (>=v2) |
6 # Read the file COPYING coming with the software for details. | 6 # Read the file COPYING coming with the software for details. |
7 | 7 |
8 """Packager that builds KDE-PIM debian packages from the enterprise branch""" | 8 """Packager that builds KDE-PIM debian packages from the enterprise35 branch. |
9 """ | |
9 | 10 |
10 import os | 11 import os |
11 import time | 12 import time |
12 import re | 13 import re |
13 | 14 |
39 return version_template % locals() | 40 return version_template % locals() |
40 | 41 |
41 def update_version_numbers(self, pkgbasedir): | 42 def update_version_numbers(self, pkgbasedir): |
42 """Overrides the inherited method to update version numbers in the code | 43 """Overrides the inherited method to update version numbers in the code |
43 """ | 44 """ |
44 versionstring = "(enterprise %s)" % self.enterprise_version | 45 versionstring = "(enterprise35 %s)" % self.enterprise_version |
45 for versionfile in ["kmail/kmversion.h", "kontact/src/main.cpp", | 46 for versionfile in ["kmail/kmversion.h", "kontact/src/main.cpp", |
46 "korganizer/version.h"]: | 47 "korganizer/version.h"]: |
48 #FIXME: should check successful replacements | |
47 treepkg.util.replace_in_file(os.path.join(pkgbasedir, versionfile), | 49 treepkg.util.replace_in_file(os.path.join(pkgbasedir, versionfile), |
48 "\(enterprise ([^)]*)\)", | 50 "\(enterprise35 ([^)]*)\)", |
49 versionstring) | 51 versionstring) |
50 | 52 |
51 def do_package(self): | 53 def do_package(self): |
52 pkgbaseversion, pkgbasedir = self.export_sources() | 54 pkgbaseversion, pkgbasedir = self.export_sources() |
53 self.update_version_numbers(pkgbasedir) | 55 self.update_version_numbers(pkgbasedir) |
56 origtargz = os.path.join(self.work_dir, | 58 origtargz = os.path.join(self.work_dir, |
57 pkgbasename + ".orig.tar.gz") | 59 pkgbasename + ".orig.tar.gz") |
58 self.create_tarball(origtargz, self.work_dir, | 60 self.create_tarball(origtargz, self.work_dir, |
59 os.path.basename(pkgbasedir)) | 61 os.path.basename(pkgbasedir)) |
60 | 62 |
61 changemsg = ("Update to SVN enterprise branch rev. %d" | 63 changemsg = ("Update to SVN enterprise35 branch rev. %d" |
62 % (self.revision,)) | 64 % (self.revision,)) |
63 self.copy_debian_directory(pkgbasedir, pkgbaseversion, | 65 self.copy_debian_directory(pkgbasedir, pkgbaseversion, |
64 changemsg) | 66 changemsg) |
65 | 67 |
66 self.create_source_package(pkgbasedir, origtargz) | 68 self.create_source_package(pkgbasedir, origtargz) |