Mercurial > treepkg
comparison 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 |
comparison
equal
deleted
inserted
replaced
266:e201ea1f6d0e | 267:fdee17d71778 |
---|---|
127 | 127 |
128 return super(BasePackageTrack, self).packager_for_new_revision() | 128 return super(BasePackageTrack, self).packager_for_new_revision() |
129 | 129 |
130 def export_sources(self, to_dir): | 130 def export_sources(self, to_dir): |
131 if self.tag_url is not None: | 131 if self.tag_url is not None: |
132 logging.info("Exporting sources from %s to %r", | 132 self.export_tag(self.tag_url, to_dir) |
133 self.tag_url, to_dir) | |
134 treepkg.subversion.export(self.tag_url, to_dir) | |
135 else: | 133 else: |
136 super(BasePackageTrack, self).export_sources(to_dir) | 134 super(BasePackageTrack, self).export_sources(to_dir) |
135 | |
136 def export_tag(self, tag_url, to_dir): | |
137 logging.info("Exporting sources from %s to %r", | |
138 tag_url, to_dir) | |
139 treepkg.subversion.export(tag_url, to_dir) | |
137 | 140 |
138 | 141 |
139 def define_kdepim_packager(basename=None, external_subdirs=None): | 142 def define_kdepim_packager(basename=None, external_subdirs=None): |
140 | 143 |
141 caller_globals = inspect.currentframe().f_back.f_globals | 144 caller_globals = inspect.currentframe().f_back.f_globals |