mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Do not display regexes in app_map because that doesn't really make sense ..?
This commit is contained in:
parent
e748f7a80e
commit
fd5c66db1b
1 changed files with 11 additions and 0 deletions
|
@ -285,6 +285,17 @@ def app_map(app=None, raw=False, user=None):
|
||||||
|
|
||||||
for url in perm_all_urls:
|
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:
|
if not raw:
|
||||||
result[url] = perm_label
|
result[url] = perm_label
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue