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): def choice_install(self):
"""Download, build and install package """Download, build and install package
""" """
if not find_package(self.prgnam + self.meta.sp, if not find_package(self.prgnam, self.meta.pkg_path):
self.meta.pkg_path):
self.build() self.build()
self.install() self.install()
delete(self.build_folder) delete(self.build_folder)

View file

@ -159,7 +159,7 @@ class QueuePkgs(object):
for pkg in packages: for pkg in packages:
ver = SBoGrep(pkg).version() ver = SBoGrep(pkg).version()
prgnam = "{0}-{1}".format(pkg, ver) 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) binary = slack_package(prgnam)
PackageManager(binary).upgrade(flag="--install-new") PackageManager(binary).upgrade(flag="--install-new")
else: else:

View file

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