Skip to content

Commit

Permalink
Update python3-ruff-native to 0.4.10
Browse files Browse the repository at this point in the history
 also introduce cargo-fixups class to work
 around the limitations of the current
 poky vendoring

Closes #12083

Signed-off-by: Konrad Weihmann <[email protected]>
  • Loading branch information
priv-kweihmann committed Jun 22, 2024
1 parent 7cc2db8 commit 0a8fda8
Show file tree
Hide file tree
Showing 3 changed files with 361 additions and 294 deletions.
15 changes: 15 additions & 0 deletions classes/cargo-fixups.bbclass
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c) 2024, Konrad Weihmann
python do_cargo_fixup() {
rootdir = d.getVar('CARGO_VENDORING_DIRECTORY')
for item in os.listdir(rootdir):
if item in ['.', '..']:
continue
target_path = f'{rootdir}/{item}/.cargo-checksum.json'
if not os.path.exists(target_path):
with open(target_path, 'w') as o:
o.write('{"files":{}}')
}

addtask do_cargo_fixup after do_patch before do_compile
do_cargo_fixup[doc] = "Creates .cargo-checksum.json files where missing"
Loading

0 comments on commit 0a8fda8

Please sign in to comment.