From 8b30b547a59a4018c81b7f5a04bdbba55ca43109 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 29 Nov 2020 07:02:19 +0100 Subject: [PATCH] Report use of ynh_normalize_url_path --- package_linter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package_linter.py b/package_linter.py index c1f7f82..8686a64 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1323,6 +1323,11 @@ class Script(TestSuite): "Use grep -q 'id: $appname' to check a specific app is installed" ) + @test() + def normalize_url_path(self): + if self.contains("ynh_normalize_url_path"): + yield Info("You probably don't need to call ynh_normalize_url_path ... this is only relevant for upgrades from super-old versions (like 3 years ago or so...)") + @test() def safe_rm(self): if self.contains("rm -r") or self.contains("rm -R") or self.contains("rm -fr") or self.contains("rm -fR"):