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:
5603d47
)
conf: error handling if no no section headers
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Fri, 3 Aug 2012 05:48:48 +0000
(13:48 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Fri, 3 Aug 2012 05:48:48 +0000
(13:48 +0800)
gitbuildsys/conf.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/conf.py
b/gitbuildsys/conf.py
index
3d9487d
..
8ce768b
100644
(file)
--- a/
gitbuildsys/conf.py
+++ b/
gitbuildsys/conf.py
@@
-293,7
+293,10
@@
distconf = $build__distconf
self.replaced_keys = defaultdict(list)
if fpaths:
- self.cfgparser.read(fpaths)
+ try:
+ self.cfgparser.read(fpaths)
+ except MissingSectionHeaderError, err:
+ raise errors.ConfigError('config file error:%s' % err)
self._check_passwd()
def _lookfor_confs(self):