[oe-commits] Paul Eggleton : oe-pkgdata-util: improve command-line usage
git at git.openembedded.org
git at git.openembedded.org
Sat Feb 14 22:27:33 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 04dc571ac7c26f0dcf1a1fcd466482e22519998d
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=04dc571ac7c26f0dcf1a1fcd466482e22519998d
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date: Thu Feb 5 15:08:22 2015 +0000
oe-pkgdata-util: improve command-line usage
* Use argparse instead of optparse for standardised help output, options
and a much cleaner code structure
* Look up pkgdata directory automatically so the user doesn't have to
specify it
* Use standard logging
NOTE: this does mean a slight change in syntax - if you do want to
specify the pkgdata directory (usually only necessary if you're calling
it from within the build process) you need to use the parameter -p (or
--pkgdata-dir) and specify this before the command, not after it.
Examples:
oe-pkgdata-util find-path /sbin/mke2fs
oe-pkgdata-util lookup-recipe libelf1
oe-pkgdata-util read-value PKGSIZE libc6
oe-pkgdata-util -p /home/user/oe/build/tmp/sysroots/qemux86-64/pkgdata read-value PKGSIZE libc6
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
meta/classes/buildhistory.bbclass | 2 +-
meta/classes/license.bbclass | 2 +-
meta/lib/oe/package_manager.py | 2 +-
meta/lib/oeqa/runtime/_ptest.py | 2 +-
scripts/oe-pkgdata-util | 264 ++++++++++++++++++--------------------
5 files changed, 132 insertions(+), 140 deletions(-)
Diff: http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=04dc571ac7c26f0dcf1a1fcd466482e22519998d
More information about the Openembedded-commits
mailing list