treewide: remove rogue leading slashes (MR 2252)

One flaw of pathlib is that Path("/tmp/") / "/some/relative/path"
results in Path("/some/relative/path")....

Fix the places in the codebase where we get this wrong.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-18 21:09:06 +02:00 committed by Oliver Smith
parent 9fff9033f2
commit 099bd2f4fa
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 4 additions and 4 deletions

View file

@ -137,7 +137,7 @@ def mount(chroot: Chroot):
# mount --bind the qemu-user binary
pmb.chroot.binfmt.register(arch)
pmb.helpers.mount.bind_file(Chroot.native() / f"/usr/bin/qemu-{arch_qemu}",
pmb.helpers.mount.bind_file(Chroot.native() / f"usr/bin/qemu-{arch_qemu}",
chroot / f"usr/bin/qemu-{arch_qemu}-static",
create_folders=True)