diff recipes/kde_enterprise_4/base.py @ 267:fdee17d71778

Refactor the enterprise4 BasePackageTrack to make it possible to override the tag export in derived classes
author Bernhard Herzog <bh@intevation.de>
date Thu, 30 Apr 2009 10:30:04 +0000
parents 9c0131d2e0e1
children bba100869221
line wrap: on
line diff
--- a/recipes/kde_enterprise_4/base.py	Thu Apr 30 10:21:01 2009 +0000
+++ b/recipes/kde_enterprise_4/base.py	Thu Apr 30 10:30:04 2009 +0000
@@ -129,12 +129,15 @@
 
     def export_sources(self, to_dir):
         if self.tag_url is not None:
-            logging.info("Exporting sources from %s to %r",
-                         self.tag_url, to_dir)
-            treepkg.subversion.export(self.tag_url, to_dir)
+            self.export_tag(self.tag_url, to_dir)
         else:
             super(BasePackageTrack, self).export_sources(to_dir)
 
+    def export_tag(self, tag_url, to_dir):
+        logging.info("Exporting sources from %s to %r",
+                     tag_url, to_dir)
+        treepkg.subversion.export(tag_url, to_dir)
+
 
 def define_kdepim_packager(basename=None, external_subdirs=None):
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)