changeset 369:2ecdfa0f345a

used full path (baseurl + subdir) for tag detection not only the first subdir don't think there exists any disadvantages in this approach for current packagers
author Bjoern Ricks <bricks@intevation.de>
date Tue, 01 Jun 2010 15:11:30 +0000
parents 8bb8d8de12a2
children 0bee91b435ab
files treepkg/subversion.py
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/subversion.py	Mon May 31 12:16:04 2010 +0000
+++ b/treepkg/subversion.py	Tue Jun 01 15:11:30 2010 +0000
@@ -308,16 +308,7 @@
     which part of the tag is meant.
 
     The subdir also determines which SVN directory's revision number is
-    used.  Normally, just appending the subdir to the tag URL would be
-    enough for this, but the situation is more complex for
-    kdebase_workspace and kdebase_runtime, whose code comes from
-    different subdirectories of the kdebase-4.X-branch subdirectory (for
-    enterprise4 tags).  Here the revision number must be taken from
-    kdebase-4.X-branch, but the URL to use when exporting the sources,
-    must refer to e.g. kdebase-4.1-branch/kdebase_workspace.  To achieve
-    that, subdir may contain slashes to indicate subdirectories of
-    subdirectories, but only the first part of subdir (up to the first
-    slash) is used when determining the revision number.
+    used.
     """
 
     def __init__(self, url, pattern, subdir):
@@ -347,7 +338,7 @@
 
     def determine_revision(self, baseurl, subdir):
         urlrev = (None, None)
-        revision_url = baseurl + "/" + subdir.split("/")[0]
+        revision_url = baseurl + "/" + subdir
         try:
             revision = last_changed_revision(revision_url)
             urlrev = (baseurl + "/" + subdir, revision)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)