From 181edeeb5734aa9a19d02946bb02b986ccb21840 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Sat, 6 Jan 2024 08:01:11 -0300 Subject: [PATCH] [gems.appimage] fix: regression on the database backend preventing long time installed AppImages to receive updates --- CHANGELOG.md | 5 +++++ bauh/gems/appimage/model.py | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af1dbf1a..27bb4bd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [NEXT] +### Fixes +- AppImage + - regression on the database backend preventing long time installed AppImages to receive updates + ## [0.10.6] 2023-12-23 ### Features - new **verified** filter for the management table diff --git a/bauh/gems/appimage/model.py b/bauh/gems/appimage/model.py index 927300c2..80ca7669 100644 --- a/bauh/gems/appimage/model.py +++ b/bauh/gems/appimage/model.py @@ -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