diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-20 16:54:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-24 17:29:55 +0000 |
commit | f502a9a10825515db66aa4b502a1411c32abc637 (patch) | |
tree | f3119ebdd57f71534d119b94f238246c5c467383 /bitbake/lib | |
parent | d4993c837ac8b76a7644d41479bdc76f2fe39d41 (diff) | |
download | poky-f502a9a10825515db66aa4b502a1411c32abc637.tar.gz |
bitbake: Revert "bblayers/query: Fix using "removeprefix" string method"
This reverts commit 004cfdec1c865f2351bbac99acb3d63bfef9d380.
Now we have python 3.9 as a minimum we can do this.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bblayers/query.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bblayers/query.py b/bitbake/lib/bblayers/query.py index 9b2e081cfd..eb7cb465b4 100644 --- a/bitbake/lib/bblayers/query.py +++ b/bitbake/lib/bblayers/query.py | |||
@@ -145,8 +145,7 @@ skipped recipes will also be listed, with a " (skipped)" suffix. | |||
145 | skiplist = list(self.tinfoil.cooker.skiplist_by_mc[mc].keys()) | 145 | skiplist = list(self.tinfoil.cooker.skiplist_by_mc[mc].keys()) |
146 | 146 | ||
147 | if mc: | 147 | if mc: |
148 | mcspec = f'mc:{mc}:' | 148 | skiplist = [s.removeprefix(f'mc:{mc}:') for s in skiplist] |
149 | skiplist = [s[len(mcspec):] if s.startswith(mcspec) else s for s in skiplist] | ||
150 | 149 | ||
151 | for fn in skiplist: | 150 | for fn in skiplist: |
152 | recipe_parts = os.path.splitext(os.path.basename(fn))[0].split('_') | 151 | recipe_parts = os.path.splitext(os.path.basename(fn))[0].split('_') |