Don't add yarn repository when requested in app manifest

This commit is contained in:
selfhoster1312 2024-09-01 16:00:49 +02:00
parent a5049a8a13
commit 713ad63452

View file

@ -1231,6 +1231,10 @@ class AptDependenciesAppResource(AppResource):
if self.packages:
script += " ".join([ynh_apt_install_dependencies, *self.packages])
for repo, values in self.extras.items():
# SPECIAL CASE: yarn is already preconfigured -> skip it
if "dl.yarnpkg.com/debian" in values["repo"]:
continue
script += "\n" + " ".join(
[
ynh_apt_install_dependencies_from_extra_repository,