Support multiple licenses

This commit is contained in:
Alexandre Aubin 2020-11-21 02:34:01 +01:00
parent ce36805ad5
commit 809232f8b3

View file

@ -881,7 +881,12 @@ class Manifest(TestSuite):
if "license" not in self.manifest: if "license" not in self.manifest:
return return
license = self.manifest["license"] # Turns out there may be multiple licenses ... (c.f. seafile)
licenses = self.manifest["license"].split(",")
for license in licenses:
license = license.strip()
if "nonfree" in license.replace("-", ""): if "nonfree" in license.replace("-", ""):
yield Warning("'non-free' apps cannot be integrated in YunoHost's app catalog.") yield Warning("'non-free' apps cannot be integrated in YunoHost's app catalog.")