[gems.appimage] fix: regression on the database backend preventing long time installed AppImages to receive updates

This commit is contained in:
Vinicius Moreira
2024-01-06 08:01:11 -03:00
parent be167ce4be
commit 181edeeb57
2 changed files with 8 additions and 1 deletions

View File

@@ -54,7 +54,9 @@ class AppImage(SoftwarePackage):
icon_url=url_icon, license=license, description=description,
installed=installed)
self.source = source
self.repository = repository if repository else (github if github else repository)
github_url = f"https://github.com/{github}" if github and not github.startswith("http://") else None
self.repository = repository if repository else (github_url if github_url else repository)
self.categories = (categories.split(',') if isinstance(categories, str) else categories) if categories else None
self.url_download = url_download
self.icon_path = icon_path