From: Zhang Qiang Date: Thu, 20 Sep 2012 08:32:00 +0000 (+0800) Subject: Check if specified build conf exists. X-Git-Tag: 0.10~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fccf6f2e8db9286aac75cd71159707a96a4db85;p=tools%2Fgbs.git Check if specified build conf exists. Change-Id: Ia2488a6e6841a7f87397c5c1f595bccc2b737e06 --- diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index a403b17..c73ed4c 100644 --- a/gitbuildsys/cmd_build.py +++ b/gitbuildsys/cmd_build.py @@ -99,6 +99,8 @@ def prepare_repos_and_build_conf(opts, arch): if opts.dist: distconf = opts.dist + if not os.path.exists(distconf): + msger.error('specified build conf %s does not exists' % distconf) else: if repoparser.buildconf is None: msger.error('failed to get build conf from repos, please '