mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
fix dependencies
This commit is contained in:
parent
2231116352
commit
cad12200fb
1 changed files with 16 additions and 0 deletions
|
@ -161,6 +161,7 @@ class OthersInstall(object):
|
||||||
dependencies = resolving_deps(self.package, self.repo)
|
dependencies = resolving_deps(self.package, self.repo)
|
||||||
(dwn_links, install_all, comp_sum, uncomp_sum
|
(dwn_links, install_all, comp_sum, uncomp_sum
|
||||||
) = self.store(dependencies)
|
) = self.store(dependencies)
|
||||||
|
dependencies = equal_deps_and_install(dependencies, install_all)
|
||||||
sys.stdout.write("{0}Done{1}\n".format(color['GREY'],
|
sys.stdout.write("{0}Done{1}\n".format(color['GREY'],
|
||||||
color['ENDC']))
|
color['ENDC']))
|
||||||
print("") # new line at start
|
print("") # new line at start
|
||||||
|
@ -246,6 +247,21 @@ class OthersInstall(object):
|
||||||
return [dwn, install, comp_sum, uncomp_sum]
|
return [dwn, install, comp_sum, uncomp_sum]
|
||||||
|
|
||||||
|
|
||||||
|
def equal_deps_and_install(dependencies, install_all):
|
||||||
|
'''
|
||||||
|
This fixes be written dependencies equal to those that
|
||||||
|
will be installed because some repositories like 'salix'
|
||||||
|
said dependencies that exist in the distribution but not
|
||||||
|
in the repository itself.
|
||||||
|
'''
|
||||||
|
deps = []
|
||||||
|
for dep in dependencies:
|
||||||
|
for inst in install_all:
|
||||||
|
if inst.startswith(dep + '-'):
|
||||||
|
deps.append(dep)
|
||||||
|
return deps
|
||||||
|
|
||||||
|
|
||||||
def views(install_all, comp_sum, repository, dependencies):
|
def views(install_all, comp_sum, repository, dependencies):
|
||||||
'''
|
'''
|
||||||
Views packages
|
Views packages
|
||||||
|
|
Loading…
Add table
Reference in a new issue