diff options
Diffstat (limited to 'bitbake/lib/bblayers/query.py')
-rw-r--r-- | bitbake/lib/bblayers/query.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/bitbake/lib/bblayers/query.py b/bitbake/lib/bblayers/query.py index bfc18a7593..9b2e081cfd 100644 --- a/bitbake/lib/bblayers/query.py +++ b/bitbake/lib/bblayers/query.py | |||
@@ -142,10 +142,11 @@ skipped recipes will also be listed, with a " (skipped)" suffix. | |||
142 | # Ensure we list skipped recipes | 142 | # Ensure we list skipped recipes |
143 | # We are largely guessing about PN, PV and the preferred version here, | 143 | # We are largely guessing about PN, PV and the preferred version here, |
144 | # but we have no choice since skipped recipes are not fully parsed | 144 | # but we have no choice since skipped recipes are not fully parsed |
145 | skiplist = list(self.tinfoil.cooker.skiplist.keys()) | 145 | skiplist = list(self.tinfoil.cooker.skiplist_by_mc[mc].keys()) |
146 | mcspec = 'mc:%s:' % mc | 146 | |
147 | if mc: | 147 | if mc: |
148 | skiplist = [s[len(mcspec):] for s in skiplist if s.startswith(mcspec)] | 148 | mcspec = f'mc:{mc}:' |
149 | skiplist = [s[len(mcspec):] if s.startswith(mcspec) else s for s in skiplist] | ||
149 | 150 | ||
150 | for fn in skiplist: | 151 | for fn in skiplist: |
151 | recipe_parts = os.path.splitext(os.path.basename(fn))[0].split('_') | 152 | recipe_parts = os.path.splitext(os.path.basename(fn))[0].split('_') |
@@ -162,7 +163,7 @@ skipped recipes will also be listed, with a " (skipped)" suffix. | |||
162 | def print_item(f, pn, ver, layer, ispref): | 163 | def print_item(f, pn, ver, layer, ispref): |
163 | if not selected_layer or layer == selected_layer: | 164 | if not selected_layer or layer == selected_layer: |
164 | if not bare and f in skiplist: | 165 | if not bare and f in skiplist: |
165 | skipped = ' (skipped: %s)' % self.tinfoil.cooker.skiplist[f].skipreason | 166 | skipped = ' (skipped: %s)' % self.tinfoil.cooker.skiplist_by_mc[mc][f].skipreason |
166 | else: | 167 | else: |
167 | skipped = '' | 168 | skipped = '' |
168 | if show_filenames: | 169 | if show_filenames: |
@@ -301,7 +302,7 @@ Lists recipes with the bbappends that apply to them as subitems. | |||
301 | if self.show_appends_for_pn(pn, cooker_data, args.mc): | 302 | if self.show_appends_for_pn(pn, cooker_data, args.mc): |
302 | appends = True | 303 | appends = True |
303 | 304 | ||
304 | if not args.pnspec and self.show_appends_for_skipped(): | 305 | if not args.pnspec and self.show_appends_for_skipped(args.mc): |
305 | appends = True | 306 | appends = True |
306 | 307 | ||
307 | if not appends: | 308 | if not appends: |
@@ -317,9 +318,9 @@ Lists recipes with the bbappends that apply to them as subitems. | |||
317 | 318 | ||
318 | return self.show_appends_output(filenames, best_filename) | 319 | return self.show_appends_output(filenames, best_filename) |
319 | 320 | ||
320 | def show_appends_for_skipped(self): | 321 | def show_appends_for_skipped(self, mc): |
321 | filenames = [os.path.basename(f) | 322 | filenames = [os.path.basename(f) |
322 | for f in self.tinfoil.cooker.skiplist.keys()] | 323 | for f in self.tinfoil.cooker.skiplist_by_mc[mc].keys()] |
323 | return self.show_appends_output(filenames, None, " (skipped)") | 324 | return self.show_appends_output(filenames, None, " (skipped)") |
324 | 325 | ||
325 | def show_appends_output(self, filenames, best_filename, name_suffix = ''): | 326 | def show_appends_output(self, filenames, best_filename, name_suffix = ''): |