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:
3bb29a0
)
fix indent error and refine repo url pattern
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Mon, 30 Jul 2012 08:48:02 +0000
(16:48 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Tue, 31 Jul 2012 07:59:14 +0000
(15:59 +0800)
gitbuildsys/cmd_build.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/cmd_build.py
b/gitbuildsys/cmd_build.py
index
72850ce
..
511d189
100644
(file)
--- a/
gitbuildsys/cmd_build.py
+++ b/
gitbuildsys/cmd_build.py
@@
-334,10
+334,9
@@
def do(opts, args):
'following repos:\n %s' % \
(buildarch, '\n'.join(repos)))
for url in repourls:
- if not re.match('https?://.*?/.*', url) and \
- not (url.startswith('/') and os.path.exists(url)):
- msger.error("Invalid repo url: %s" % url)
-
+ if not re.match('https?://.*', url) and \
+ not (url.startswith('/') and os.path.exists(url)):
+ msger.error("Invalid repo url: %s" % url)
cmd += ['--repository=%s' % url]
if opts.dist: