Fix matching installed name with repo name

This commit is contained in:
Dimitris Zlatanidis 2015-07-11 06:03:06 +03:00
parent ed7e432275
commit 840e0ec1d2

View file

@ -309,7 +309,10 @@ class SBoInstall(object):
except ValueError:
Msg().build_FAILED(sbo_url, prgnam)
sys.exit(0)
if find_package(pkg + "-", self.meta.pkg_path):
find = find_package(pkg + "-", self.meta.pkg_path)
if find:
inst_pkg = split_package(find[0])[0]
if inst_pkg == pkg:
print("{0}[ Upgrading ] --> {1}{2}".format(
self.meta.color["YELLOW"],
self.meta.color["ENDC"], pkg))