From: Zhang Qiang Date: Mon, 30 Jul 2012 08:48:02 +0000 (+0800) Subject: fix indent error and refine repo url pattern X-Git-Tag: 0.9~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cf99030c9cadb096c6ec1d0744da6244c38c177;p=tools%2Fgbs.git fix indent error and refine repo url pattern --- diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index 72850ce..511d189 100644 --- 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: