diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fd8dc3c..836ce64d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - General - single thread downloader (**wget**) does not create the directory where the file will be stored +- AppImage + - trying to download a file without a URL associated with [#210](https://github.com/vinifmor/bauh/issues/210) + - Arch - **wget** as a hard requirement for Arch package management diff --git a/bauh/gems/appimage/controller.py b/bauh/gems/appimage/controller.py index 19bc17e4..4d97d0f3 100644 --- a/bauh/gems/appimage/controller.py +++ b/bauh/gems/appimage/controller.py @@ -512,6 +512,13 @@ class AppImageManager(SoftwareManager): def _download(self, pkg: AppImage, watcher: ProcessWatcher) -> Optional[Tuple[str, str]]: appimage_url = pkg.url_download_latest_version if pkg.update else pkg.url_download + + if not appimage_url: + watcher.show_message(title=self.i18n['error'], + body=self.i18n['appimage.download.no_url'].format(app=bold(pkg.name)), + type_=MessageType.ERROR) + return + file_name = appimage_url.split('/')[-1] pkg.version = pkg.latest_version pkg.url_download = appimage_url diff --git a/bauh/gems/appimage/resources/locale/ca b/bauh/gems/appimage/resources/locale/ca index 073ad6b1..3007e66d 100644 --- a/bauh/gems/appimage/resources/locale/ca +++ b/bauh/gems/appimage/resources/locale/ca @@ -18,6 +18,7 @@ appimage.downgrade.impossible.title=No s’ha pogut revertir la versió appimage.downgrade.install_version=No s’ha pogut instal·lar la versió {} ({}) appimage.downgrade.unknown_version.body=No s’ha pogut identificar la versió actual de {} a l’historial de versions appimage.download.error=No s’ha pogut baixar el fitxer {}. El servidor del fitxer pot estar inactiu. +appimage.download.no_url=No download URL associated with the app {app} appimage.error.uninstall_current_version=It was not possible to uninstall the current version of {} appimage.history.0_version=versió appimage.history.1_published_at=data diff --git a/bauh/gems/appimage/resources/locale/de b/bauh/gems/appimage/resources/locale/de index 425733b3..37780d0c 100644 --- a/bauh/gems/appimage/resources/locale/de +++ b/bauh/gems/appimage/resources/locale/de @@ -18,6 +18,7 @@ appimage.downgrade.impossible.title=Downgrade nicht möglich appimage.downgrade.install_version=Die Installation der Version {} ({}) war nicht möglich appimage.downgrade.unknown_version.body=Die Identifikation der aktuellen Version von {} im Versionsverlauf war nicht möglich appimage.download.error=Das Herunterladen der Datei {} ist fehlgeschlagen. Eventuell ist der Server nicht verfügbar +appimage.download.no_url=No download URL associated with the app {app} appimage.error.uninstall_current_version=Deinstallation der aktuellen Version von {} war nicht möglich appimage.history.0_version=Version appimage.history.1_published_at=Datum diff --git a/bauh/gems/appimage/resources/locale/en b/bauh/gems/appimage/resources/locale/en index 5189c039..6e24001a 100644 --- a/bauh/gems/appimage/resources/locale/en +++ b/bauh/gems/appimage/resources/locale/en @@ -18,6 +18,7 @@ appimage.downgrade.impossible.title=Impossible to downgrade appimage.downgrade.install_version=It was not possible to install the version {} ({}) appimage.downgrade.unknown_version.body={} current version was not found in its release history appimage.download.error=It was not possible to download the file {}. The file server can be down. +appimage.download.no_url=No download URL associated with the app {app} appimage.error.uninstall_current_version=It was not possible to uninstall the current version of {} appimage.history.0_version=version appimage.history.1_published_at=date diff --git a/bauh/gems/appimage/resources/locale/es b/bauh/gems/appimage/resources/locale/es index 2ae6a1bf..f35d6d29 100644 --- a/bauh/gems/appimage/resources/locale/es +++ b/bauh/gems/appimage/resources/locale/es @@ -18,6 +18,7 @@ appimage.downgrade.impossible.title=Imposible revertir la versión appimage.downgrade.install_version=No fue posible instalar la versión {} ({}) appimage.downgrade.unknown_version.body=No fue posible identificar la versión actual de {} en su historial de versiones appimage.download.error=No fue posible descargar el archivo {}. El servidor del archivo puede estar inactivo. +appimage.download.no_url=No hay URL de descarga asociada a la aplicación {app} appimage.error.uninstall_current_version=It was not possible to uninstall the current version of {} appimage.history.0_version=versión appimage.history.1_published_at=fecha diff --git a/bauh/gems/appimage/resources/locale/fr b/bauh/gems/appimage/resources/locale/fr index 9b0f1a9b..10d25b00 100644 --- a/bauh/gems/appimage/resources/locale/fr +++ b/bauh/gems/appimage/resources/locale/fr @@ -16,6 +16,7 @@ appimage.downgrade.impossible.body={} a une seule version publiée. appimage.downgrade.impossible.title=Impossible à downgrader appimage.downgrade.install_version=Installer la version {} ({}) était impossible appimage.downgrade.unknown_version.body=Impossible d'identifier la version actuelle de {} dans son historique de versions +appimage.download.no_url=No download URL associated with the app {app} appimage.error.uninstall_current_version=Impossible de désinstaller la version actuelle de {} appimage.history.0_version=version appimage.history.1_published_at=date diff --git a/bauh/gems/appimage/resources/locale/it b/bauh/gems/appimage/resources/locale/it index 52f6fefd..4128a7cf 100644 --- a/bauh/gems/appimage/resources/locale/it +++ b/bauh/gems/appimage/resources/locale/it @@ -17,6 +17,7 @@ appimage.downgrade.impossible.body={} ha solo una versione pubblicata. appimage.downgrade.impossible.title=Impossibile eseguire il downgrade appimage.downgrade.install_version=Non è stato possibile installare la versione {} ({}) appimage.downgrade.unknown_version.body=Non è stato possibile identificare la {} versione corrente nella sua cronologia delle versioni +appimage.download.no_url=No download URL associated with the app {app} appimage.error.uninstall_current_version=Non è stato possibile disinstallare la versione corrente di {} appimage.history.0_version=versione appimage.history.1_published_at=data diff --git a/bauh/gems/appimage/resources/locale/pt b/bauh/gems/appimage/resources/locale/pt index 5b290f73..34cdfd5c 100644 --- a/bauh/gems/appimage/resources/locale/pt +++ b/bauh/gems/appimage/resources/locale/pt @@ -18,6 +18,7 @@ appimage.downgrade.impossible.title=Impossível reverter a versão appimage.downgrade.install_version=Não foi possivel instalar a versão {} ({}) appimage.downgrade.unknown_version.body=Não foi possível identificar a versão atual de {} no seu histórico de versões appimage.download.error=Não foi possível baixar o arquivo {}. O servidor do arquivo pode estar fora do ar. +appimage.download.no_url=Nenhuma URL de download associada ao aplicativo {app} appimage.error.uninstall_current_version=It was not possible to uninstall the current version of {} appimage.history.0_version=versão appimage.history.1_published_at=data diff --git a/bauh/gems/appimage/resources/locale/ru b/bauh/gems/appimage/resources/locale/ru index 0e329cf2..8843dd9e 100644 --- a/bauh/gems/appimage/resources/locale/ru +++ b/bauh/gems/appimage/resources/locale/ru @@ -18,6 +18,7 @@ appimage.downgrade.impossible.title=Не удалось понизить вер appimage.downgrade.install_version=Не удалось установить версию {} ({}) appimage.downgrade.unknown_version.body=Не удалось определить текущую версию {} в истории версий appimage.download.error=Не удалось загрузить файл {}. Файловый сервер не отвечает +appimage.download.no_url=No download URL associated with the app {app} appimage.error.uninstall_current_version=Не удалось удалить текущую версию {} appimage.history.0_version=версия appimage.history.1_published_at=дата diff --git a/bauh/gems/appimage/resources/locale/tr b/bauh/gems/appimage/resources/locale/tr index 9a5f3d6d..7da746d4 100644 --- a/bauh/gems/appimage/resources/locale/tr +++ b/bauh/gems/appimage/resources/locale/tr @@ -18,6 +18,7 @@ appimage.downgrade.impossible.title=Sürüm düşürmek imkansız appimage.downgrade.install_version={} ({}) sürümünü kurmak mümkün değildi appimage.downgrade.unknown_version.body=Sürüm geçmişinde {} mevcut sürümü tanımlamak mümkün değildi appimage.download.error={} dosyası indirilemedi. Dosya sunucusu kapalı olabilir. +appimage.download.no_url=No download URL associated with the app {app} appimage.error.uninstall_current_version={} mevcut sürümünü kaldırmak mümkün değildi appimage.history.0_version=sürüm appimage.history.1_published_at=tarih