[fix] crashing for scenarios when there are packages that cannot upgrade to be displayed

This commit is contained in:
Vinícius Moreira
2020-05-04 17:40:56 -03:00
parent 6a2f5a237c
commit d94d742207
4 changed files with 7 additions and 3 deletions

View File

@@ -4,6 +4,10 @@ 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/).
## [0.9.3] 2020
### Fixes
- upgrade: crashing for scenarios when there are packages that cannot upgrade to be displayed on the summary window
## [0.9.2] 2020-05-04
### Features
- UI

View File

@@ -69,7 +69,7 @@ python3 -m venv bauh_env ( creates a virtualenv in a folder called "bauh_env" )
bauh_env/bin/pip install bauh ( installs bauh in the isolated environment )
bauh_env/bin/bauh ( launches bauh )
# P.S: if you want to launch it attached to your system tray, replace the last command by: bauh_env/bin/bauh --tray=1
# P.S: if you want to launch it attached to your system tray, replace the last command by: bauh_env/bin/bauh-tray
```
- To update your isolated bauh to the latest version:

View File

@@ -1,4 +1,4 @@
__version__ = '0.9.2'
__version__ = '0.9.3'
__app_name__ = 'bauh'
import os

View File

@@ -225,7 +225,7 @@ class UpgradeSelected(AsyncAction):
return required, extra
def _gen_cannot_update_form(self, reqs: List[UpgradeRequirement]) -> FormComponent:
opts = [self._req_as_option(r.pkg, False, r.reason) for r in reqs]
opts = [self._req_as_option(r, False, r.reason) for r in reqs]
comps = [MultipleSelectComponent(label='', options=opts, default_options=set(opts))]
return FormComponent(label=self.i18n['action.update.cannot_update_label'], components=comps)