mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Update find package
This commit is contained in:
parent
ca7c1d6fd7
commit
1327fbafae
3 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue