]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake-prserv-tool: check file name rbt/prserv
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 20 Oct 2015 08:57:49 +0000 (01:57 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Tue, 20 Oct 2015 09:20:04 +0000 (02:20 -0700)
commitb6a5e9973afe805490f6aee8967026bc47f2692b
tree5524bf0c844038b08e77a8592527214d84067bdc
parentd3616a95e536ad691d3a6ee432d15fa28d6d7b4a
bitbake-prserv-tool: check file name

Fixed:
$ bitbake-prserv-tool import /tmp/1
  File "/path/to/lib/bb/parse/__init__.py", line 114, in handle(fn='/tmp/1', data=<bb.data_smart.DataSmart object at 0x2369bd0>, include=True):
                     return h['handle'](fn, data, include)
    >    raise ParseError("not a BitBake file", fn)

ParseError: ParseError in /tmp/1: not a BitBake file

But 1.conf works well, its help also shows "<file.conf>", so check the
filename and print proper error message.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
scripts/bitbake-prserv-tool