[oe-commits] Koen Kooi : bitbake-prserv-tool: make help text show .conf suffix

git at git.openembedded.org git at git.openembedded.org
Mon Feb 17 16:58:02 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 704878ba025fda931be6accbb74cfdb14ffb55e9
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=704878ba025fda931be6accbb74cfdb14ffb55e9

Author: Koen Kooi <koen at dominion.thruhere.net>
Date:   Sat Feb 15 16:28:55 2014 +0100

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 at 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 at dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/bitbake-prserv-tool | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/bitbake-prserv-tool b/scripts/bitbake-prserv-tool
index 96a3470..28c2416 100755
--- a/scripts/bitbake-prserv-tool
+++ b/scripts/bitbake-prserv-tool
@@ -5,8 +5,8 @@ help ()
     base=`basename $0`
     echo -e "Usage: $base command"
     echo "Avaliable commands:"
-    echo -e "\texport <file>: export and lock down the AUTOPR values from the PR service into a file for release."
-    echo -e "\timport <file>: import the AUTOPR values from the exported file into the PR service."
+    echo -e "\texport <file.conf>: export and lock down the AUTOPR values from the PR service into a file for release."
+    echo -e "\timport <file.conf>: import the AUTOPR values from the exported file into the PR service."
 }
 
 clean_cache()



More information about the Openembedded-commits mailing list