Fixed: Strange dependency problem #97

This commit is contained in:
Dimitris Zlatanidis 2017-09-23 22:42:34 +02:00
parent 9891d5349e
commit 04ddba5eda
4 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,7 @@
3.2.9 - 24/09/2017
Fixed:
- Strange dependency problem #97
3.2.8 - 06/08/2017 3.2.8 - 06/08/2017
Fixed: Fixed:
- BugFix: Package return after build - BugFix: Package return after build

View file

@ -80,6 +80,7 @@ class BinaryInstall(object):
for name in self.data[0]: for name in self.data[0]:
self.repo_pkg_names.append(split_package(name)[0]) self.repo_pkg_names.append(split_package(name)[0])
self.blacklist = BlackList().packages(self.data[0], self.repo) self.blacklist = BlackList().packages(self.data[0], self.repo)
self.matching = False
def start(self, is_upgrade): def start(self, is_upgrade):
""" """
@ -103,6 +104,8 @@ class BinaryInstall(object):
if self.install: if self.install:
print("\nThe following packages will be automatically " print("\nThe following packages will be automatically "
"installed or upgraded \nwith new version:\n") "installed or upgraded \nwith new version:\n")
if self.matching:
self.msg.matching(self.packages)
self.top_view() self.top_view()
self.msg.upg_inst(self.is_upgrade) self.msg.upg_inst(self.is_upgrade)
mas_sum = self.views(self.install, self.comp_sum) mas_sum = self.views(self.install, self.comp_sum)
@ -337,6 +340,7 @@ class BinaryInstall(object):
self.data[2], self.data[3]): self.data[2], self.data[3]):
name = split_package(pk)[0] name = split_package(pk)[0]
if (pk and pkg in name and name not in self.blacklist): if (pk and pkg in name and name not in self.blacklist):
self.matching = True
dwn.append("{0}{1}/{2}".format(self.mirror, loc, pk)) dwn.append("{0}{1}/{2}".format(self.mirror, loc, pk))
install.append(pk) install.append(pk)
comp_sum.append(comp) comp_sum.append(comp)

View file

@ -161,3 +161,10 @@ class Msg(object):
print("| Package {0} installed successfully".format(installed)) print("| Package {0} installed successfully".format(installed))
self.template(78) self.template(78)
print("") print("")
def matching(self, packages):
print("Not found package with the name [ {0}{1}{2} ]. "
"Matching packages:\nNOTE: Not dependenc"
"ies are resolved\n".format(self.meta.color["CYAN"],
"".join(packages),
self.meta.color["ENDC"]))

View file

@ -119,6 +119,8 @@ class SBoInstall(object):
if self.package_found: if self.package_found:
print("\nThe following packages will be automatically " print("\nThe following packages will be automatically "
"installed or upgraded \nwith new version:\n") "installed or upgraded \nwith new version:\n")
if self.match:
self.msg.matching(self.slackbuilds)
self.top_view() self.top_view()
self.msg.upg_inst(self.is_upgrade) self.msg.upg_inst(self.is_upgrade)