[gems.appimage] fix: github URL checking

This commit is contained in:
Vinicius Moreira
2024-01-10 16:58:11 -03:00
parent 8170a52f97
commit e2686e3c54

View File

@@ -55,7 +55,7 @@ class AppImage(SoftwarePackage):
installed=installed) installed=installed)
self.source = source self.source = source
github_url = f"https://github.com/{github}" if github and not github.startswith("http://") else None github_url = f"https://github.com/{github}" if github and not github.startswith("https://") else None
self.repository = repository if repository else (github_url if github_url else repository) 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.categories = (categories.split(',') if isinstance(categories, str) else categories) if categories else None
self.url_download = url_download self.url_download = url_download