]> code.ossystems Code Review - openembedded-core.git/commit
bitbake-prserv-tool: make help text show .conf suffix
authorKoen Kooi <koen@dominion.thruhere.net>
Sat, 15 Feb 2014 15:28:55 +0000 (16:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Feb 2014 15:36:27 +0000 (15:36 +0000)
commit704878ba025fda931be6accbb74cfdb14ffb55e9
tree89a7e9c8e206564e5ef0eac6a9297ee6e26266a5
parent2e490f3b08176b20fe41c64cf17ecf3b5af61f39
bitbake-prserv-tool: make help text show .conf suffix

'export' will accept any output filename, but 'import' needs a '.conf'
suffix to work. Otherwise you'll get:

koen@beast:/build/v2013.12$ bitbake-prserv-tool import x.txt
ERROR: Traceback (most recent call last):
  File "/build/v2013.12/sources/bitbake/lib/bb/cookerdata.py", line 162,
in wrapped
    return func(fn, *args)
  File "/build/v2013.12/sources/bitbake/lib/bb/cookerdata.py", line 172,
in parse_config_file
    return bb.parse.handle(fn, data, include)
  File "/build/v2013.12/sources/bitbake/lib/bb/parse/__init__.py", line
100, in handle
    raise ParseError("not a BitBake file", fn)
ParseError: ParseError in x.txt: not a BitBake file

ERROR: Unable to parse x.txt: ParseError in x.txt: not a BitBake file
Importing from file x.txt failed!

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/bitbake-prserv-tool