Fix quotation reuse (MR 2336)

Python 3.10.12 fails without this patch:

File "/media/gompa/73d88639-a730-456c-a428-6d500b4020b7/pmbootstrap/pmb/parse/arguments.py", line 844 help="Alpine Linux mirror, default: " f"{default_config.mirrors["alpine"]}",
SyntaxError: f-string: unmatched '['

Related: https://peps.python.org/pep-0701/
(Commit message written by Oliver)
This commit is contained in:
gompa 2024-06-24 19:08:21 +02:00 committed by Oliver Smith
parent 8c0bc2e0e8
commit 8390a093d8
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 4 additions and 4 deletions

View file

@ -233,6 +233,6 @@ def alpine_apkindex_path(repo="main", arch: Optional[Arch] = None):
# Find it on disk
channel_cfg = pmb.config.pmaports.read_config_channel()
repo_link = f"{get_context().config.mirrors["alpine"]}{channel_cfg['mirrordir_alpine']}/{repo}"
repo_link = f"{get_context().config.mirrors['alpine']}{channel_cfg['mirrordir_alpine']}/{repo}"
cache_folder = get_context().config.work / (f"cache_apk_{arch}")
return cache_folder / apkindex_hash(repo_link)