From c73f73140fe3d18287a50bc04fd367e08e8e0ba8 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Fri, 7 Nov 2008 19:33:37 +0000 Subject: Changed repsys submit to use the parent URL when working on mirror checkouts --- RepSys/mirror.py | 4 ++++ RepSys/rpmutil.py | 3 +++ 2 files changed, 7 insertions(+) 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 -- cgit v1.2.1