diff recipes/kde_enterprise_3_5/base.py @ 280:d2382953b2c8

When building a tagged revision, make sure to explicitly use the revision number when exporting the sources to avoid a race. The repository might change between detection of the tag and the export.
author Bernhard Herzog <bh@intevation.de>
date Mon, 03 Aug 2009 18:57:27 +0000
parents f3dee156e3e3
children cd10b835d9b8
line wrap: on
line diff
--- a/recipes/kde_enterprise_3_5/base.py	Thu May 07 18:44:36 2009 +0000
+++ b/recipes/kde_enterprise_3_5/base.py	Mon Aug 03 18:57:27 2009 +0000
@@ -68,6 +68,7 @@
                 logging.info("Revision %s has not been packaged yet",
                              revision)
                 self.tag_url = tag_url
+                self.tag_revision = tag_revision
                 return self.revision_packager_cls(self, tag=tag_url, *revision)
             else:
                 logging.info("Revision %s has already been packaged.",
@@ -77,11 +78,11 @@
 
     def export_sources(self, to_dir):
         if self.tag_url is not None:
-            self.export_tag(self.tag_url, to_dir)
+            self.export_tag(self.tag_url, to_dir, revision=self.tag_revision)
         else:
             super(BasePackageTrack, self).export_sources(to_dir)
 
-    def export_tag(self, tag_url, to_dir):
+    def export_tag(self, tag_url, to_dir, revision=None):
         logging.info("Exporting sources from %s to %r",
                      tag_url, to_dir)
-        treepkg.subversion.export(tag_url, to_dir)
+        treepkg.subversion.export(tag_url, to_dir, revision=revision)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)