Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] bitbake: update help message for dump-signatures
@ 2014-07-04  5:38 Robert Yang
  2014-07-04  5:38 ` [PATCH 1/2] " Robert Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Robert Yang @ 2014-07-04  5:38 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 0ed5a13f5f9478e2c22f517fb3504b738422f85c:

  python3: fix builtins imports (2014-06-30 16:36:44 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib rbt/sig
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/sig

Robert Yang (2):
  bitbake: update help message for dump-signatures
  bitbake-user-manual-intro.xml: update for dump-signatures

 bitbake/bin/bitbake                                |    4 ++--
 .../bitbake-user-manual-intro.xml                  |   10 ++++++----
 2 files changed, 8 insertions(+), 6 deletions(-)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] bitbake: update help message for dump-signatures
  2014-07-04  5:38 [PATCH 0/2] bitbake: update help message for dump-signatures Robert Yang
@ 2014-07-04  5:38 ` Robert Yang
  2014-07-04  5:38 ` [PATCH 2/2] bitbake-user-manual-intro.xml: update " Robert Yang
  2014-07-04  5:40 ` [PATCH 0/2] bitbake: update help message " Robert Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2014-07-04  5:38 UTC (permalink / raw)
  To: openembedded-core

The bitbake -S had been updated which always reuires an argument, so
update the help info:
- Add the two args in the help message: none and printdiff

- Use type="choice" so that we can get more friendly error messages,
  for example:
  bitbake: error: option -S: invalid choice: 'printdiffX' (choose from 'none', 'printdiff')

- dump-signatures=DUMP_SIGNATURES -> dump-signatures=SIGNATURE_HANDLER

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 bitbake/bin/bitbake |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index b3acbe1..5c25a9d 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -139,8 +139,8 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
         parser.add_option("-n", "--dry-run", help = "Don't execute, just go through the motions.",
                    action = "store_true", dest = "dry_run", default = False)
 
-        parser.add_option("-S", "--dump-signatures", help = "Dump out the signature construction information, with no task execution. Parameters are passed to the signature handling code, use 'none' if no specific handler is required.",
-                   action = "append", dest = "dump_signatures", default = [])
+        parser.add_option("-S", "--dump-signatures", help = "Dump out the signature construction information, with no task execution. The SIGNATURE_HANDLER can be none or printdiff, while none means only dump the signature, printdiff means compare the dumped signature with the cached one.",
+                   action = "append", dest = "dump_signatures", default = [], type="choice", choices=("none", "printdiff"), metavar="SIGNATURE_HANDLER")
 
         parser.add_option("-p", "--parse-only", help = "Quit after parsing the BB recipes.",
                    action = "store_true", dest = "parse_only", default = False)
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] bitbake-user-manual-intro.xml: update for dump-signatures
  2014-07-04  5:38 [PATCH 0/2] bitbake: update help message for dump-signatures Robert Yang
  2014-07-04  5:38 ` [PATCH 1/2] " Robert Yang
@ 2014-07-04  5:38 ` Robert Yang
  2014-07-04  5:40 ` [PATCH 0/2] bitbake: update help message " Robert Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2014-07-04  5:38 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 .../bitbake-user-manual-intro.xml                  |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.xml b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.xml
index ae267b4..e4025a8 100644
--- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.xml
+++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-intro.xml
@@ -471,11 +471,13 @@
        -D, --debug           Increase the debug level. You can specify this more
                              than once.
        -n, --dry-run         Don't execute, just go through the motions.
-       -S DUMP_SIGNATURES, --dump-signatures=DUMP_SIGNATURES
+       -S SIGNATURE_HANDLER, --dump-signatures=SIGNATURE_HANDLER
                              Dump out the signature construction information, with
-                             no task execution. Parameters are passed to the
-                             signature handling code, use 'none' if no specific
-                             handler is required.
+                             no task execution. The SIGNATURE_HANDLER can be none
+                             or printdiff, while none means only dump the
+                             signature, printdiff means compare the dumped
+                             signature with the cached one.
+
        -p, --parse-only      Quit after parsing the BB recipes.
        -s, --show-versions   Show current and preferred versions of all recipes.
        -e, --environment     Show the global or per-package environment complete
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] bitbake: update help message for dump-signatures
  2014-07-04  5:38 [PATCH 0/2] bitbake: update help message for dump-signatures Robert Yang
  2014-07-04  5:38 ` [PATCH 1/2] " Robert Yang
  2014-07-04  5:38 ` [PATCH 2/2] bitbake-user-manual-intro.xml: update " Robert Yang
@ 2014-07-04  5:40 ` Robert Yang
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2014-07-04  5:40 UTC (permalink / raw)
  To: openembedded-core


Sorry, please ignore this, it should go into bitbake-devel.

// Robert

On 07/04/2014 01:38 PM, Robert Yang wrote:
> The following changes since commit 0ed5a13f5f9478e2c22f517fb3504b738422f85c:
>
>    python3: fix builtins imports (2014-06-30 16:36:44 +0100)
>
> are available in the git repository at:
>
>    git://git.pokylinux.org/poky-contrib rbt/sig
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/sig
>
> Robert Yang (2):
>    bitbake: update help message for dump-signatures
>    bitbake-user-manual-intro.xml: update for dump-signatures
>
>   bitbake/bin/bitbake                                |    4 ++--
>   .../bitbake-user-manual-intro.xml                  |   10 ++++++----
>   2 files changed, 8 insertions(+), 6 deletions(-)
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-04  5:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-04  5:38 [PATCH 0/2] bitbake: update help message for dump-signatures Robert Yang
2014-07-04  5:38 ` [PATCH 1/2] " Robert Yang
2014-07-04  5:38 ` [PATCH 2/2] bitbake-user-manual-intro.xml: update " Robert Yang
2014-07-04  5:40 ` [PATCH 0/2] bitbake: update help message " Robert Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox