From 9f45cc6fa3112d1f08e8a2aa952f5fcad7af5436 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 6 Oct 2021 14:31:23 +0200 Subject: [PATCH] Suggest removing references to jessie --- package_linter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 1222c22..8ee8ca5 100755 --- a/package_linter.py +++ b/package_linter.py @@ -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):