[appimage] fix: trying to download a file without a URL associated with

This commit is contained in:
Vinicius Moreira
2021-11-25 13:48:20 -03:00
parent 99595dfbb2
commit 6875d62a16
11 changed files with 19 additions and 0 deletions

View File

@@ -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

View File

@@ -18,6 +18,7 @@ appimage.downgrade.impossible.title=No sha pogut revertir la versió
appimage.downgrade.install_version=No sha pogut instal·lar la versió {} ({})
appimage.downgrade.unknown_version.body=No sha pogut identificar la versió actual de {} a lhistorial de versions
appimage.download.error=No sha 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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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=дата

View File

@@ -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