mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Bugfixed for upgarde packages
This commit is contained in:
parent
5ef1b92d07
commit
d905bb1244
3 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
4.7.5 - 04/04/2023
|
||||
BugFixed:
|
||||
- Upgrade packages from repositories
|
||||
|
||||
4.7.4 - 04/04/2023
|
||||
Fixed:
|
||||
- Python typing hints
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import Generator
|
||||
|
||||
from slpkg.checks import Check
|
||||
from slpkg.upgrade import Upgrade
|
||||
|
@ -418,9 +417,9 @@ class Argparse(Configs):
|
|||
choices: list = []
|
||||
title: str = f' Choose packages you want to {method} '
|
||||
|
||||
repo_packages: Generator = SBoQueries('').sbos()
|
||||
repo_packages: list = list(SBoQueries('').sbos())
|
||||
if self.utils.is_option(self.flag_binaries, self.flags):
|
||||
repo_packages: Generator = BinQueries('', self.binary_repo).all_package_names_by_repo()
|
||||
repo_packages: list = list(BinQueries('', self.binary_repo).all_package_names_by_repo())
|
||||
|
||||
installed: list = self.utils.installed_packages
|
||||
|
||||
|
|
|
@ -58,7 +58,6 @@ class Upgrade(Configs):
|
|||
repo_version: str = SBoQueries(name).version()
|
||||
repo_build: str = self.utils.read_sbo_build_tag(name)
|
||||
|
||||
# print(f'{name} {repo_version}{repo_build} {inst_version}{inst_build}',
|
||||
# parse(f'{repo_version}{repo_build}') > parse(f'{inst_version}{inst_build}'))
|
||||
# print(f'{name} {repo_version}{repo_build} {inst_version}{inst_build}', parse(f'{repo_version}{repo_build}') > parse(f'{inst_version}{inst_build}'))
|
||||
|
||||
return parse(f'{repo_version}{repo_build}') > parse(f'{inst_version}{inst_build}')
|
||||
|
|
Loading…
Reference in a new issue