From 7766b26ec539f1e3630d7eb837861090943bc922 Mon Sep 17 00:00:00 2001 From: Zhang Qiang Date: Tue, 12 Jun 2012 14:46:58 +0800 Subject: [PATCH] gbs build repo conf: support local repo or plain rpm dir --- gitbuildsys/cmd_build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index a74e699..24cff91 100644 --- a/gitbuildsys/cmd_build.py +++ b/gitbuildsys/cmd_build.py @@ -197,7 +197,10 @@ def get_reops_conf(): try: repo_server = re.match('(https?://.*?)/.*', repo_url).groups()[0] except AttributeError: - raise Exception("Invalid repo url: %s" % opt) + if repo_url.startswith('/') and os.path.exists(repo_url): + repo_server = repo_url + else: + raise Exception("Invalid repo url: %s" % opt) repo_auth = 'url' + ':' + repo_server + ';' valid = True -- 2.7.4