mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 20:14:14 +02:00
[fix] crashing for scenarios when there are packages that cannot upgrade to be displayed
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
__version__ = '0.9.2'
|
||||
__version__ = '0.9.3'
|
||||
__app_name__ = 'bauh'
|
||||
|
||||
import os
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user