mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Fixed for double packages with check
This commit is contained in:
parent
6b12a16597
commit
5b3683b5a2
1 changed files with 14 additions and 13 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue