Fixed for double packages with check

This commit is contained in:
Dimitris Zlatanidis 2024-04-09 21:40:45 +03:00
parent 6b12a16597
commit 5b3683b5a2

View file

@ -173,20 +173,21 @@ class Upgrade(Configs):
for name in data.keys():
# if not self.utils.is_package_installed(name):
if name not in self.installed_names:
self.id += 1
self.sum_added += 1
repo_version: str = data[name]['version']
repo_build: str = data[name]['build']
if not self.utils.is_package_installed(name):
self.id += 1
self.sum_added += 1
repo_version: str = data[name]['version']
repo_build: str = data[name]['build']
found_packages[self.id]: dict = {
'name': name,
'inst_version': '',
'inst_build': '',
'repo_version': repo_version,
'repo_build': repo_build,
'repo': self.repos.slack_repo_name,
'type': 'add'
}
found_packages[self.id]: dict = {
'name': name,
'inst_version': '',
'inst_build': '',
'repo_version': repo_version,
'repo_build': repo_build,
'repo': self.repos.slack_repo_name,
'type': 'add'
}
if found_packages:
print()