forked from Mirror/pmbootstrap
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:
parent
9fff9033f2
commit
099bd2f4fa
3 changed files with 4 additions and 4 deletions
|
@ -89,7 +89,7 @@ def sideload(deviceinfo: Deviceinfo, method: str):
|
|||
Chroot.native().path / mountpoint)
|
||||
|
||||
# Missing recovery zip error
|
||||
if not (Chroot.native() / mountpoint / "/var/lib/postmarketos-android-recovery-installer"
|
||||
if not (Chroot.native() / mountpoint / "var/lib/postmarketos-android-recovery-installer"
|
||||
/ f"pmos-{deviceinfo.codename}.zip").exists():
|
||||
raise RuntimeError("The recovery zip has not been generated yet,"
|
||||
" please run 'pmbootstrap install' with the"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue