[oe-commits] [openembedded-core] 03/10: oe-pkgdata-util: improve resiliance of lookup-recipe

git at git.openembedded.org git at git.openembedded.org
Tue Aug 14 23:51:37 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 29aaeafd1672797e32fccfe4ad48f0b12a84fe1b
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Tue Aug 14 17:21:13 2018 +0100

    oe-pkgdata-util: improve resiliance of lookup-recipe
    
    If we can't find the pkgdata for a package, instead of erroring out just emit a
    message and continue.
    
    This makes it possible to pass long lists of packages to oe-pkgdata-util and
    process the output.
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/oe-pkgdata-util | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index e6c9df9..5d2e328 100755
--- a/scripts/oe-pkgdata-util
+++ b/scripts/oe-pkgdata-util
@@ -279,10 +279,10 @@ def lookup_recipe(args):
                 parse_pkgdatafile(pkgdatafile)
             continue
         pkgdatafile = os.path.join(args.pkgdata_dir, 'runtime-reverse', pkg)
-        if not os.path.exists(pkgdatafile):
-            logger.error("The following packages could not be found: %s" % pkg)
-            sys.exit(1)
-        parse_pkgdatafile(pkgdatafile)
+        if os.path.exists(pkgdatafile):
+            parse_pkgdatafile(pkgdatafile)
+        else:
+            print("The following packages could not be found: %s" % pkg)
 
 def package_info(args):
     def parse_pkgdatafile(pkgdatafile):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list