changeset 276:f3dee156e3e3

Add pkgbaseversion parameter to the prepare_sources_for_tarball method
author Bernhard Herzog <bh@intevation.de>
date Thu, 07 May 2009 16:01:10 +0000
parents c0cbd133b607
children 4441aff001ac
files recipes/kde_enterprise_3_5/base.py recipes/kde_enterprise_4/base.py treepkg/packager.py
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/recipes/kde_enterprise_3_5/base.py	Thu May 07 15:35:28 2009 +0000
+++ b/recipes/kde_enterprise_3_5/base.py	Thu May 07 16:01:10 2009 +0000
@@ -28,7 +28,7 @@
         enterprise_version = self.enterprise_version
         return self.track.version_template % locals()
 
-    def prepare_sources_for_tarball(self, pkgbasedir):
+    def prepare_sources_for_tarball(self, pkgbasedir, pkgbaseversion):
         self.update_version_numbers(pkgbasedir)
 
     def update_version_numbers(self, pkgbasedir):
--- a/recipes/kde_enterprise_4/base.py	Thu May 07 15:35:28 2009 +0000
+++ b/recipes/kde_enterprise_4/base.py	Thu May 07 16:01:10 2009 +0000
@@ -29,7 +29,7 @@
         enterprise_version = self.enterprise_version
         return self.track.version_template % locals()
 
-    def prepare_sources_for_tarball(self, pkgbasedir):
+    def prepare_sources_for_tarball(self, pkgbasedir, pkgbaseversion):
         self.update_version_numbers(pkgbasedir)
 
     def update_version_numbers(self, pkgbasedir):
--- a/treepkg/packager.py	Thu May 07 15:35:28 2009 +0000
+++ b/treepkg/packager.py	Thu May 07 16:01:10 2009 +0000
@@ -84,7 +84,7 @@
         return pkgbaseversion, pkgbasedir
 
 
-    def prepare_sources_for_tarball(self, pkgbasedir):
+    def prepare_sources_for_tarball(self, pkgbasedir, pkgbaseversion):
         """Prepare the exported sources prior to creating the tarball.
 
         The default implementation does nothing.  Derived classes should
@@ -201,7 +201,7 @@
         origtargz = os.path.join(self.work_dir,
                                  pkgbasename + ".orig.tar.gz")
 
-        self.prepare_sources_for_tarball(pkgbasedir)
+        self.prepare_sources_for_tarball(pkgbasedir, pkgbaseversion)
 
         self.create_tarball(origtargz, self.work_dir,
                             os.path.basename(pkgbasedir))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)