comparison recipes/kde_enterprise_4/kdepim.py @ 214:4307e25d2afe

Activate version number patching for KDEPIM enterprise4 packages.
author Bernhard Herzog <bh@intevation.de>
date Thu, 18 Dec 2008 14:31:58 +0000
parents e868c6818f8c
children 024b309c0520
comparison
equal deleted inserted replaced
213:98c5aab790bb 214:4307e25d2afe
30 return self.track.version_template % locals() 30 return self.track.version_template % locals()
31 31
32 def update_version_numbers(self, pkgbasedir): 32 def update_version_numbers(self, pkgbasedir):
33 """Overrides the inherited method to update version numbers in the code 33 """Overrides the inherited method to update version numbers in the code
34 """ 34 """
35 return 35 versionstring = "(enterprise4 %s)" % self.enterprise_version
36 versionstring = "(enterprise35 %s)" % self.enterprise_version
37 failed = [] 36 failed = []
38 for versionfile in ["kmail/kmversion.h", "kontact/src/main.cpp", 37 for versionfile in ["kaddressbook/kabcore.cpp",
38 "kmail/kmversion.h",
39 "kontact/src/main.cpp",
39 "korganizer/version.h"]: 40 "korganizer/version.h"]:
40 if not treepkg.util.replace_in_file(os.path.join(pkgbasedir, 41 if not treepkg.util.replace_in_file(os.path.join(pkgbasedir,
41 versionfile), 42 versionfile),
42 "\(enterprise35 ([^)]*)\)", 43 "\(enterprise4 ([^)]*)\)",
43 versionstring): 44 versionstring):
44 failed.append(versionfile) 45 failed.append(versionfile)
45 if failed: 46 if failed:
46 raise RuntimeError("kdepim: failed to update version numbers in %s" 47 raise RuntimeError("kdepim: failed to update version numbers in %s"
47 % (", ".join(failed),)) 48 % (", ".join(failed),))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)