Revert packages_from_raw_bash test

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
tituspijean 2023-10-15 16:48:59 +02:00 committed by GitHub
parent a69b80972e
commit dc362dd636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1117,10 +1117,7 @@ class AptDependenciesAppResource(AppResource):
if (
not isinstance(values.get("repo"), str)
or not isinstance(values.get("key"), str)
or (
not isinstance(values.get("packages"), list)
and not isinstance(values.get("packages_from_raw_bash"), str)
)
or not isinstance(values.get("packages"), list)
):
raise YunohostError(
"In apt resource in the manifest: 'extras' repo should have the keys 'repo', 'key' defined as strings, 'packages' defined as list or 'packages_from_raw_bash' defined as string",