mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Added repo version
This commit is contained in:
parent
2e3f4c54d0
commit
8e65e88602
1 changed files with 3 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue