diff options
-rw-r--r-- | RepSys/mirror.py | 4 | ||||
-rw-r--r-- | RepSys/rpmutil.py | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/RepSys/mirror.py b/RepSys/mirror.py index 09d72de..f0d2316 100644 --- a/RepSys/mirror.py +++ b/RepSys/mirror.py @@ -81,6 +81,10 @@ def switchto_parent(svn, url, path): newurl = mirror_relocate(mirror_url(), layout.repository_url(), url, path) return newurl +def switchto_parent_url(url): + newurl = relocate_path(mirror_url(), layout.repository_url(), url) + return newurl + def switchto_mirror(svn, url, path): newurl = mirror_relocate(layout.repository_url(), mirror_url(), url, path) return newurl diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index d0be054..ab85fab 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -573,6 +573,9 @@ def get_submit_info(path): max = rev if max == -1: raise Error, "revision tag not found in 'svn info' output" + + if mirror.using_on(url): + url = mirror.switchto_parent_url(url) return name, url, max |