Switched to query

This commit is contained in:
Dimitris Zlatanidis 2022-06-01 11:40:33 +03:00
parent 1171f0e78d
commit 48a8a13b2e

View file

@ -35,6 +35,7 @@ from slpkg.messages import Msg
from slpkg.dialog_box import DialogUtil
from slpkg.splitting import split_package
from slpkg.__metadata__ import MetaData as _meta_
from slpkg.sbo.greps import SBoGrep
from slpkg.slack.slackware_repo import slackware_repository
@ -617,15 +618,13 @@ class PackageManager(Utils):
"""Grabs packages
"""
pkg_list, pkg_size = [], []
for line in packages.splitlines():
if repo == "sbo":
if repo == "sbo":
pkg_list = SBoGrep(name="").names()
if line.startswith("SLACKBUILD NAME: "):
pkg_list.append(line[17:].strip())
pkg_size.append("0 K")
else:
else:
for line in packages.splitlines():
if line.startswith("PACKAGE NAME: "):
pkg_list.append(line[15:].strip())
@ -649,7 +648,6 @@ class PackageManager(Utils):
self.meta.lib_path + "sbo_repo/SLACKBUILDS.TXT")):
packages = self.read_file(f"{self.meta.lib_path}"
"sbo_repo/SLACKBUILDS.TXT")
else:
if (os.path.isfile(