mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Support multiple licenses
This commit is contained in:
parent
ce36805ad5
commit
809232f8b3
1 changed files with 15 additions and 10 deletions
|
@ -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.")
|
||||||
|
|
Loading…
Reference in a new issue