1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-24 21:15:10 +03:00

pmb, tests: Enable Refurb checks

Simplifies some code.
This commit is contained in:
Newbyte 2025-05-26 21:17:21 +02:00
parent 1ce9b6a887
commit 58dc9962f4
No known key found for this signature in database
GPG key ID: ACD854892B38D898
12 changed files with 20 additions and 29 deletions

View file

@ -109,8 +109,7 @@ def override_source(
# Write and log append file
with open(append_path_outside, "w", encoding="utf-8") as handle:
for line in append.split("\n"):
handle.write(line[13:].replace(" " * 4, "\t") + "\n")
handle.writelines(line[13:].replace(" " * 4, "\t") + "\n" for line in append.split("\n"))
pmb.chroot.user(["cat", append_path], chroot)
# Append it to the APKBUILD