mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[microdecision] I'm sick of those people who end up with app repo being added as app list and messing up everything -.-
This commit is contained in:
parent
5c5330be3d
commit
bca2af3391
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ def app_fetchlist(url=None, name=None):
|
||||||
name -- Name of the list
|
name -- Name of the list
|
||||||
url -- URL of remote JSON list
|
url -- URL of remote JSON list
|
||||||
"""
|
"""
|
||||||
|
if not url.endswith(".json"):
|
||||||
|
raise YunohostError("This is not a valid application list url. It should end with .json.")
|
||||||
|
|
||||||
# If needed, create folder where actual appslists are stored
|
# If needed, create folder where actual appslists are stored
|
||||||
if not os.path.exists(REPO_PATH):
|
if not os.path.exists(REPO_PATH):
|
||||||
os.makedirs(REPO_PATH)
|
os.makedirs(REPO_PATH)
|
||||||
|
|
Loading…
Add table
Reference in a new issue