From 330f06c3581ae88a5a3097d9f98617637d943962 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 28 May 2019 20:28:13 +0200 Subject: [PATCH] Check list url independently of scheme --- .../data_migrations/0010_migrate_to_apps_json.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/yunohost/data_migrations/0010_migrate_to_apps_json.py b/src/yunohost/data_migrations/0010_migrate_to_apps_json.py index 86664ecf1..78f6d733b 100644 --- a/src/yunohost/data_migrations/0010_migrate_to_apps_json.py +++ b/src/yunohost/data_migrations/0010_migrate_to_apps_json.py @@ -22,15 +22,15 @@ class MyMigration(Migration): # Remove all the deprecated lists lists_to_remove = [ - "http://app.yunohost.org/list.json", # Old list on old installs, alias to official.json - "https://app.yunohost.org/official.json", - "https://app.yunohost.org/community.json", - "https://labriqueinter.net/apps/labriqueinternet.json" + "app.yunohost.org/list.json", # Old list on old installs, alias to official.json + "app.yunohost.org/official.json", + "app.yunohost.org/community.json", + "labriqueinter.net/apps/labriqueinternet.json" ] appslists = _read_appslist_list() 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) # Replace by apps.json list