summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/oe-pkgdata-util5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index f70f85e147..2baa9f4c42 100755
--- a/scripts/oe-pkgdata-util
+++ b/scripts/oe-pkgdata-util
@@ -239,6 +239,7 @@ def lookup_recipe(args):
239def find_path(args): 239def find_path(args):
240 import json 240 import json
241 241
242 found = False
242 for root, dirs, files in os.walk(os.path.join(args.pkgdata_dir, 'runtime')): 243 for root, dirs, files in os.walk(os.path.join(args.pkgdata_dir, 'runtime')):
243 for fn in files: 244 for fn in files:
244 with open(os.path.join(root,fn)) as f: 245 with open(os.path.join(root,fn)) as f:
@@ -248,8 +249,12 @@ def find_path(args):
248 dictval = json.loads(val) 249 dictval = json.loads(val)
249 for fullpth in dictval.keys(): 250 for fullpth in dictval.keys():
250 if fnmatch.fnmatchcase(fullpth, args.targetpath): 251 if fnmatch.fnmatchcase(fullpth, args.targetpath):
252 found = True
251 print("%s: %s" % (fn, fullpth)) 253 print("%s: %s" % (fn, fullpth))
252 break 254 break
255 if not found:
256 logger.error("Unable to find any package producing path %s" % args.targetpath)
257 sys.exit(1)
253 258
254 259
255def main(): 260def main():