mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Check list url independently of scheme
This commit is contained in:
parent
a9c9cbac36
commit
330f06c358
1 changed files with 5 additions and 5 deletions
|
@ -22,15 +22,15 @@ class MyMigration(Migration):
|
||||||
|
|
||||||
# Remove all the deprecated lists
|
# Remove all the deprecated lists
|
||||||
lists_to_remove = [
|
lists_to_remove = [
|
||||||
"http://app.yunohost.org/list.json", # Old list on old installs, alias to official.json
|
"app.yunohost.org/list.json", # Old list on old installs, alias to official.json
|
||||||
"https://app.yunohost.org/official.json",
|
"app.yunohost.org/official.json",
|
||||||
"https://app.yunohost.org/community.json",
|
"app.yunohost.org/community.json",
|
||||||
"https://labriqueinter.net/apps/labriqueinternet.json"
|
"labriqueinter.net/apps/labriqueinternet.json"
|
||||||
]
|
]
|
||||||
|
|
||||||
appslists = _read_appslist_list()
|
appslists = _read_appslist_list()
|
||||||
for appslist, infos in appslists.items():
|
for appslist, infos in appslists.items():
|
||||||
if infos["url"] in lists_to_remove:
|
if infos["url"].split("//")[-1] in lists_to_remove:
|
||||||
app_removelist(name=appslist)
|
app_removelist(name=appslist)
|
||||||
|
|
||||||
# Replace by apps.json list
|
# Replace by apps.json list
|
||||||
|
|
Loading…
Add table
Reference in a new issue