mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
cargo: Rename MANIFEST_PATH -> CARGO_MANIFEST_PATH
This variable is a piece of recipe configurable interface, scope it with the class name to make that clear. (From OE-Core rev: 0101de25832fbed3d08cd522512784133c628cad) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9a5c1456ba
commit
a8f959a8d3
@@ -161,7 +161,7 @@ python cargo_common_do_patch_paths() {
|
||||
# here is better than letting cargo tell (in case the file is missing)
|
||||
# "Cargo.lock should be modified but --frozen was given"
|
||||
|
||||
manifest_path = d.getVar("MANIFEST_PATH", True)
|
||||
manifest_path = d.getVar("CARGO_MANIFEST_PATH", True)
|
||||
lockfile = os.path.join(os.path.dirname(manifest_path), "Cargo.lock")
|
||||
if not os.path.exists(lockfile):
|
||||
bb.fatal(f"{lockfile} file doesn't exist")
|
||||
|
||||
Reference in New Issue
Block a user