mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Suggest removing references to jessie
This commit is contained in:
parent
6338aca006
commit
9f45cc6fa3
1 changed files with 3 additions and 1 deletions
|
@ -599,7 +599,9 @@ class App(TestSuite):
|
|||
)
|
||||
|
||||
@test()
|
||||
def references_to_old_php_versions(app):
|
||||
def references_to_superold_stuff(app):
|
||||
if any(script.contains("jessie") for script in app.scripts.values() if script.exists):
|
||||
yield Info("The app still contains references to jessie, which could probably be cleaned up...")
|
||||
if any(script.contains("/etc/php5") or script.contains("php5-fpm") for script in app.scripts.values() if script.exists):
|
||||
yield Error("This app still has references to php5 (from the jessie era!!) which tends to indicate that it's not up to date with recent packaging practices.")
|
||||
if any(script.contains("/etc/php/7.0") or script.contains("php7.0-fpm") for script in app.scripts.values() if script.exists):
|
||||
|
|
Loading…
Add table
Reference in a new issue