From fd5c66db1bd3dbf55c1a8cee6762e84d310514a4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 29 Oct 2020 21:54:12 +0100 Subject: [PATCH] Do not display regexes in app_map because that doesn't really make sense ..? --- src/yunohost/app.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index dfa0aaec7..1660fde9a 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -285,6 +285,17 @@ def app_map(app=None, raw=False, user=None): for url in perm_all_urls: + # Here, we decide to completely ignore regex-type urls ... + # Because : + # - displaying them in regular "yunohost app map" output creates + # a pretty big mess when there are multiple regexes for the same + # app ? (c.f. for example lufi) + # - it doesn't really make sense when checking app conflicts to + # compare regexes ? (Or it could in some cases but ugh ?) + # + if url.startswith("re:"): + continue + if not raw: result[url] = perm_label else: