-
Notifications
You must be signed in to change notification settings - Fork 18
Update to version 2026.2.11dev #356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,10 +75,12 @@ def run(self): | |
| self._get_custom_addons() | ||
| self.progress_made.emit("Custom addons loaded", 5, 100) | ||
|
|
||
| addon_cache = self.get_cache("addon_catalog") | ||
| CreateAddonListWorker.migrate_catalog_to_index() | ||
|
|
||
| addon_cache = self.get_cache("addon_index") | ||
| if addon_cache: | ||
| self.process_addon_cache(addon_cache) | ||
| self.progress_made.emit("Addon catalog loaded", 20, 100) | ||
| self.progress_made.emit("Addon index loaded", 20, 100) | ||
|
|
||
| macro_cache = self.get_cache("macro") | ||
| if macro_cache: | ||
|
|
@@ -90,6 +92,15 @@ def run(self): | |
| fci.Console.PrintError(str(e) + "\n") | ||
| return | ||
|
|
||
| @staticmethod | ||
| def migrate_catalog_to_index(): | ||
| old_catalog_url = fci.Preferences().get("addon_catalog_cache_url") | ||
| if old_catalog_url.startswith("obsolete"): | ||
| return # Nothing to migrate, it was never set to anything else | ||
| fci.Console.PrintWarning("Custom catalog URL was detected: using as the index URL now\n") | ||
| fci.Console.PrintWarning(f"URL: {old_catalog_url}\n") | ||
| fci.Preferences().set("addon_index_cache_url", old_catalog_url) | ||
|
|
||
|
Comment on lines
+96
to
+103
|
||
| def _get_custom_addons(self): | ||
|
|
||
| # querying custom addons first | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
migrate_catalog_to_index()copiesaddon_catalog_cache_urldirectly intoaddon_index_cache_url. If a user previously pointedaddon_catalog_cache_urlat an.../addon_catalog_cache.zip, the startup code will then download that ZIP as the index and fail because it won’t containaddon_index_cache.json. Consider translating well-known catalog URLs (e.g. replacingaddon_catalog_cache.zipwithaddon_index_cache.zip) and/or only migrating when the old value is truly custom vs the prior default.