mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Put an actual license in LICENSE
This commit is contained in:
parent
dc5cb76a40
commit
c9d2ae81ad
1 changed files with 5 additions and 0 deletions
|
@ -435,6 +435,11 @@ class App(TestSuite):
|
|||
if not file_exists(app.path + "/" + filename):
|
||||
yield Error("Providing %s is mandatory" % filename)
|
||||
|
||||
if file_exists(app.path + "/LICENSE"):
|
||||
license_content = open(app.path + "/LICENSE").read()
|
||||
if "File containing the license of your package" in license_content:
|
||||
yield Warning("You should put an actual license in LICENSE...")
|
||||
|
||||
@test()
|
||||
def change_url_script(app):
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue