mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
undo an autoformater edit
This commit is contained in:
parent
6b564ef9f4
commit
b8b683bd66
1 changed files with 2 additions and 6 deletions
|
@ -1153,9 +1153,7 @@ class AptDependenciesAppResource(AppResource):
|
|||
|
||||
for key, values in self.extras.items():
|
||||
if isinstance(values.get("packages"), str):
|
||||
values["packages"] = [
|
||||
value.strip() for value in values["packages"].split(",")
|
||||
] # type: ignore
|
||||
values["packages"] = [value.strip() for value in values["packages"].split(",")] # type: ignore
|
||||
|
||||
if isinstance(values.get("packages_from_raw_bash"), str):
|
||||
out, err = self.check_output_bash_snippet(
|
||||
|
@ -1166,9 +1164,7 @@ class AptDependenciesAppResource(AppResource):
|
|||
f"Error while running apt resource packages_from_raw_bash snippet for '{key}' extras:"
|
||||
)
|
||||
logger.error(err)
|
||||
values["packages"] = values.get("packages", []) + [
|
||||
value.strip() for value in out.split("\n")
|
||||
] # type: ignore
|
||||
values["packages"] = values.get("packages", []) + [value.strip() for value in out.split("\n")] # type: ignore
|
||||
|
||||
if (
|
||||
not isinstance(values.get("repo"), str)
|
||||
|
|
Loading…
Add table
Reference in a new issue