Message ID | 20250220153559.3752931-1-JPEWhacker@gmail.com |
---|---|
State | New |
Headers | show |
Series | [bitbake-devel,master,scarthgap,styhead] bitbake: query: Fix using "removeprefix" string method | expand |
diff --git a/bitbake/lib/bblayers/query.py b/bitbake/lib/bblayers/query.py index eb7cb465b4e..9b2e081cfd4 100644 --- a/bitbake/lib/bblayers/query.py +++ b/bitbake/lib/bblayers/query.py @@ -145,7 +145,8 @@ skipped recipes will also be listed, with a " (skipped)" suffix. skiplist = list(self.tinfoil.cooker.skiplist_by_mc[mc].keys()) if mc: - skiplist = [s.removeprefix(f'mc:{mc}:') for s in skiplist] + mcspec = f'mc:{mc}:' + skiplist = [s[len(mcspec):] if s.startswith(mcspec) else s for s in skiplist] for fn in skiplist: recipe_parts = os.path.splitext(os.path.basename(fn))[0].split('_')