Mercurial > treepkg
changeset 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 | e201ea1f6d0e |
children | bba100869221 |
files | recipes/kde_enterprise_4/base.py |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
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):