mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report use of ynh_normalize_url_path
This commit is contained in:
parent
595edefa59
commit
8b30b547a5
1 changed files with 5 additions and 0 deletions
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue