Added repo version

This commit is contained in:
Dimitris Zlatanidis 2022-12-24 21:24:20 +02:00
parent 2e3f4c54d0
commit 8e65e88602

View file

@ -50,8 +50,9 @@ class Upgrade:
for package in packages:
pkg = self.utils.is_installed(package)
version = self.utils.split_installed_pkg(pkg)[1]
choices += [(package, version, False)]
inst_ver = self.utils.split_installed_pkg(pkg)[1]
repo_ver = SBoQueries(package).version()
choices += [(package, f'{inst_ver} -> {repo_ver}', False)]
code, tags = self.d.checklist(f'There are {len(choices)} packages for upgrade:',
title='Choose packages you want to upgrade',