Update find package

This commit is contained in:
Dimitris Zlatanidis 2015-10-03 13:04:05 +03:00
parent ca7c1d6fd7
commit 1327fbafae
3 changed files with 3 additions and 5 deletions

View file

@ -226,8 +226,7 @@ class SBoNetwork(object):
def choice_install(self):
"""Download, build and install package
"""
if not find_package(self.prgnam + self.meta.sp,
self.meta.pkg_path):
if not find_package(self.prgnam, self.meta.pkg_path):
self.build()
self.install()
delete(self.build_folder)

View file

@ -159,7 +159,7 @@ class QueuePkgs(object):
for pkg in packages:
ver = SBoGrep(pkg).version()
prgnam = "{0}-{1}".format(pkg, ver)
if find_package(prgnam + self.meta.sp, self.meta.output):
if find_package(prgnam, self.meta.output):
binary = slack_package(prgnam)
PackageManager(binary).upgrade(flag="--install-new")
else:

View file

@ -299,8 +299,7 @@ class SBoInstall(object):
os.chdir(self.build_folder)
for prgnam in slackbuilds:
pkg = "-".join(prgnam.split("-")[:-1])
installed = "".join(find_package(prgnam + self.meta.sp,
self.meta.pkg_path))
installed = "".join(find_package(prgnam, self.meta.pkg_path))
src_link = SBoGrep(pkg).source().split()
if installed:
self.msg.template(78)