Check if specified build conf exists.
authorZhang Qiang <qiang.z.zhang@intel.com>
Thu, 20 Sep 2012 08:32:00 +0000 (16:32 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Thu, 20 Sep 2012 12:49:47 +0000 (20:49 +0800)
Change-Id: Ia2488a6e6841a7f87397c5c1f595bccc2b737e06

gitbuildsys/cmd_build.py

index a403b17..c73ed4c 100644 (file)
@@ -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 '