mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-07 17:24:57 +01:00
BugFixed package not found
This commit is contained in:
parent
830c525d2b
commit
3f3b69f2d6
2 changed files with 9 additions and 3 deletions
|
@ -116,4 +116,4 @@ class SBoGrep(Utils):
|
||||||
"""
|
"""
|
||||||
if self.meta.arch == self.arch64 and arch64:
|
if self.meta.arch == self.arch64 and arch64:
|
||||||
return arch64
|
return arch64
|
||||||
return arch
|
return arch
|
||||||
|
|
|
@ -58,6 +58,8 @@ class SBoNetwork(BlackList, Utils):
|
||||||
self.flag = flag
|
self.flag = flag
|
||||||
self.meta = _meta_
|
self.meta = _meta_
|
||||||
self.msg = Msg()
|
self.msg = Msg()
|
||||||
|
self.data = SBoGrep(name="").names()
|
||||||
|
self.check_pkg_exist()
|
||||||
self.arch = SBoArch().get()
|
self.arch = SBoArch().get()
|
||||||
self.comp_tar = ".tar.gz"
|
self.comp_tar = ".tar.gz"
|
||||||
self.choice = ""
|
self.choice = ""
|
||||||
|
@ -71,7 +73,6 @@ class SBoNetwork(BlackList, Utils):
|
||||||
self.build_folder = self.meta.build_path
|
self.build_folder = self.meta.build_path
|
||||||
self._SOURCES = self.meta.SBo_SOURCES
|
self._SOURCES = self.meta.SBo_SOURCES
|
||||||
self.msg.reading()
|
self.msg.reading()
|
||||||
self.data = SBoGrep(name="").names()
|
|
||||||
self.case_insensitive()
|
self.case_insensitive()
|
||||||
if "--checklist" in self.flag:
|
if "--checklist" in self.flag:
|
||||||
self.with_checklist()
|
self.with_checklist()
|
||||||
|
@ -88,6 +89,11 @@ class SBoNetwork(BlackList, Utils):
|
||||||
if "--checklist" not in self.flag or not self.sbo_url and self.name:
|
if "--checklist" not in self.flag or not self.sbo_url and self.name:
|
||||||
self.msg.done()
|
self.msg.done()
|
||||||
|
|
||||||
|
def check_pkg_exist(self):
|
||||||
|
if self.name not in self.data:
|
||||||
|
self.msg.pkg_not_found("\n", self.name, "can't find", "\n")
|
||||||
|
raise SystemExit(1)
|
||||||
|
|
||||||
def view(self):
|
def view(self):
|
||||||
"""View SlackBuild package, read or install them
|
"""View SlackBuild package, read or install them
|
||||||
from slackbuilds.org
|
from slackbuilds.org
|
||||||
|
@ -326,7 +332,7 @@ class SBoNetwork(BlackList, Utils):
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
def error_uns(self):
|
def error_uns(self):
|
||||||
"""Check if the package is supported by an arch
|
"""Checks if the package supported by an arch
|
||||||
before proceeding to install
|
before proceeding to install
|
||||||
"""
|
"""
|
||||||
self.FAULT = ""
|
self.FAULT = ""
|
||||||
|
|
Loading…
Reference in a new issue