[appimage] fix: not able to upgrade imported AppImage files (regression from 0.9.21)

This commit is contained in:
Vinicius Moreira
2021-11-25 14:13:04 -03:00
parent dc6c2cbe7a
commit ea52236ee8
2 changed files with 11 additions and 6 deletions

View File

@@ -29,7 +29,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- AppImage - AppImage
- trying to download a file without a URL associated with [#210](https://github.com/vinifmor/bauh/issues/210) - trying to download a file without a URL associated with [#210](https://github.com/vinifmor/bauh/issues/210)
- regression: not able to import AppImage files (introduced in **0.9.21**) - regressions:
- not able to import AppImage files (introduced in **0.9.21**)
- not able to upgrade imported AppImage files (introduced in **0.9.21**)
- Arch - Arch
- **wget** as a hard requirement for Arch package management - **wget** as a hard requirement for Arch package management

View File

@@ -364,12 +364,15 @@ class AppImageManager(SoftwareManager):
for req in requirements.to_upgrade: for req in requirements.to_upgrade:
watcher.change_status("{} {} ({})...".format(self.i18n['manage_window.status.upgrading'], req.pkg.name, req.pkg.version)) watcher.change_status("{} {} ({})...".format(self.i18n['manage_window.status.upgrading'], req.pkg.name, req.pkg.version))
download_data = self._download(req.pkg, watcher) download_data = None
if not download_data: if not req.pkg.imported:
not_upgraded.append(req.pkg) download_data = self._download(req.pkg, watcher)
watcher.change_substatus('')
continue if not download_data:
not_upgraded.append(req.pkg)
watcher.change_substatus('')
continue
if not self.uninstall(req.pkg, root_password, watcher).success: if not self.uninstall(req.pkg, root_password, watcher).success:
not_upgraded.append(req.pkg) not_upgraded.append(req.pkg)