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:
parent
83a88c4ea7
commit
fc8fd02213
12 changed files with 20 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue