From 2fe4ae8b3a6790bc745102b4128484ca555b010d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 6 Oct 2021 18:04:16 +0200 Subject: [PATCH] Report /home/$app as a bad location for app data --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 7fc0c46..171e2d4 100755 --- a/package_linter.py +++ b/package_linter.py @@ -616,7 +616,7 @@ class App(TestSuite): def app_data_in_unofficial_dir(self): allowed_locations = ["/home/yunohost.app", "/home/yunohost.conf", "/home/yunohost.backup", "/home/yunohost.multimedia"] - cmd = "grep -IhEro '/home/yunohost[^/ ]*/' %s/scripts || true" % self.path + cmd = "grep -IhEro '/home/yunohost[^/ ]*/|/home/\\$app' %s/scripts || true" % self.path home_locations = subprocess.check_output(cmd, shell=True).decode('utf-8').strip().split("\n") forbidden_locations = set([location for location in home_locations if location and location.rstrip('/') not in allowed_locations])