Skip to contentSkip to conversation

oe-pkgdata-util: lookup-recipe, package-info: Don't finish prematurely

PATCH New Peter Kjellerstedt 1 participant 1 message May 15, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oe-pkgdata-util: lookup-recipe, package-info: Don't finish prematurely

If a package name exists in runtime-rprovides, lookup-recipe and package-info would finish after printing information about that package even if more packages were specified.

---
 scripts/oe-pkgdata-util | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/oe-pkgdata-util +2 -2
index aea8a57516..5dd9588224 100755
@@ -277,7 +277,7 @@ def lookup_recipe(args):
                     print("%s is in the RPROVIDES of %s:" % (pkg, f))
                 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime", f)
                 parse_pkgdatafile(pkgdatafile)
-            break
+            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)
@@ -341,7 +341,7 @@ def package_info(args):
                     print("%s is in the RPROVIDES of %s:" % (pkg, f))
                 pkgdatafile = os.path.join(args.pkgdata_dir, "runtime", f)
                 parse_pkgdatafile(pkgdatafile)
-            break
+            continue
         pkgdatafile = os.path.join(args.pkgdata_dir, "runtime-reverse", pkg)
         if not os.path.exists(pkgdatafile):
             logger.error("Unable to find any built runtime package named %s" % pkg)
Signature · 1 line
2.12.0