projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d21f33d
)
gbs build repo conf: support local repo or plain rpm dir
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Tue, 12 Jun 2012 06:46:58 +0000
(14:46 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Tue, 12 Jun 2012 06:46:58 +0000
(14:46 +0800)
gitbuildsys/cmd_build.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/cmd_build.py
b/gitbuildsys/cmd_build.py
index a74e6994bf75b2c8c5dae080800a6410ae35e87c..24cff91ebcfa785f6d3fb62317459c9d1d13c365 100644
(file)
--- 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