Updated for same packages

This commit is contained in:
Dimitris Zlatanidis 2024-04-11 11:51:00 +03:00
parent 12f4383572
commit 41a2fb415d

View file

@ -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}'))