correction of reference install or upgrade

This commit is contained in:
Dimitris Zlatanidis 2014-09-12 17:19:47 +03:00
parent 002ae21dd2
commit 358c7ccd6c
2 changed files with 3 additions and 5 deletions

View file

@ -32,7 +32,7 @@ from pkg.manager import pkg_upgrade
from colors import colors
from functions import get_file
from messages import template, build_FAILED
from __metadata__ import tmp, pkg_path, build_path
from __metadata__ import tmp, pkg_path, build_path, sp
from init import initialization
from search import sbo_search_pkg
@ -215,7 +215,7 @@ def sbo_check():
except ValueError:
build_FAILED(sbo_url, prgnam)
sys.exit()
if find_package(name, pkg_path):
if find_package(name + sp, pkg_path):
print("{0}[ Upgrading ] --> {1}{2}".format(GREEN, ENDC, name))
else:
print("{0}[ Installing ] --> {1}{2}".format(GREEN, ENDC, name))

View file

@ -33,8 +33,6 @@ from messages import pkg_not_found, pkg_found, template, build_FAILED
from pkg.find import find_package
from pkg.build import build_package
from pkg.manager import pkg_upgrade
from file_size import server_file_size
from file_size import server_file_size
from init import initialization
from search import sbo_search_pkg
@ -214,7 +212,7 @@ def sbo_build(name):
except ValueError:
build_FAILED(sbo_url, prgnam)
sys.exit()
if find_package(pkg, pkg_path):
if find_package(pkg + sp, pkg_path):
print("{0}[ Upgrading ] --> {1}{2}".format(
colors.GREEN, ENDC, pkg))
upgraded.append(pkg)