pre-commit fix after rebase issues

This commit is contained in:
Thomas Phipps 2024-03-15 18:10:26 +00:00 committed by Thomas Phipps
parent aabba2793a
commit 18cdcfc496

View file

@ -1678,9 +1678,9 @@ def get_repo(repo, **kwargs):
uri_match = re.search("(http[s]?://)(.+)", repo_entry["uri"]) uri_match = re.search("(http[s]?://)(.+)", repo_entry["uri"])
if uri_match: if uri_match:
if not uri_match.group(2).startswith(ppa_auth): if not uri_match.group(2).startswith(ppa_auth):
repo_entry[ repo_entry["uri"] = (
"uri" f"{uri_match.group(1)}{ppa_auth}@{uri_match.group(2)}"
] = f"{uri_match.group(1)}{ppa_auth}@{uri_match.group(2)}" )
except SyntaxError: except SyntaxError:
raise CommandExecutionError( raise CommandExecutionError(
f"Error: repo '{repo}' is not a well formatted definition" f"Error: repo '{repo}' is not a well formatted definition"
@ -2673,9 +2673,9 @@ def _expand_repo_def(os_name, os_codename=None, **kwargs):
repo = LP_SRC_FORMAT.format(owner_name, ppa_name, dist) repo = LP_SRC_FORMAT.format(owner_name, ppa_name, dist)
if "file" not in kwargs: if "file" not in kwargs:
kwargs[ kwargs["file"] = (
"file" f"/etc/apt/sources.list.d/{owner_name}-{ppa_name}-{dist}.list"
] = f"/etc/apt/sources.list.d/{owner_name}-{ppa_name}-{dist}.list" )
source_entry = SourceEntry(repo) source_entry = SourceEntry(repo)
for list_args in ("architectures", "comps"): for list_args in ("architectures", "comps"):