mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Updated for same packages
This commit is contained in:
parent
12f4383572
commit
41a2fb415d
1 changed files with 9 additions and 4 deletions
|
@ -44,10 +44,15 @@ class Upgrade(Configs):
|
|||
|
||||
for name, package in installed.items():
|
||||
tag: str = self.utils.split_package(package)['tag']
|
||||
|
||||
if not tag and name not in extra_repo.keys():
|
||||
self.installed_packages.append(Path(package))
|
||||
self.installed_names.append(name)
|
||||
if not tag:
|
||||
if extra_repo.get(name):
|
||||
extra_package: str = extra_repo[name]['package']
|
||||
if extra_package[:-4] != package:
|
||||
self.installed_packages.append(Path(package))
|
||||
self.installed_names.append(name)
|
||||
else:
|
||||
self.installed_packages.append(Path(package))
|
||||
self.installed_names.append(name)
|
||||
else:
|
||||
repo_tag: str = self.repos.repositories[repository]['repo_tag']
|
||||
self.installed_packages: list = list(self.log_packages.glob(f'*{repo_tag}'))
|
||||
|
|
Loading…
Reference in a new issue