1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

Prefer f-strings (MR 2327)

This commit is contained in:
Hugo Osvaldo Barrera 2024-06-23 14:41:30 +02:00 committed by Oliver Smith
parent 8057715e83
commit cebd784d84
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 13 additions and 10 deletions

View file

@ -107,7 +107,8 @@ def get_upstream_remote(aports: Path):
if any(u in line for u in urls):
return line.split("\t", 1)[0]
raise RuntimeError(
f"{name_repo}: could not find remote name for any URL '{urls}' in git" f" repository: {aports}"
f"{name_repo}: could not find remote name for any URL '{urls}' in git"
f" repository: {aports}"
)
@ -218,7 +219,8 @@ def pull(repo_name: str):
remote_ref = rev_parse(repo, branch + "@{u}", ["--abbrev-ref"])
if remote_ref != branch_upstream:
logging.warning(
f"{msg_start} is tracking unexpected remote branch '{remote_ref}' instead" f" of '{branch_upstream}'"
f"{msg_start} is tracking unexpected remote branch '{remote_ref}' instead"
f" of '{branch_upstream}'"
)
return -3