mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Switched to query
This commit is contained in:
parent
1171f0e78d
commit
48a8a13b2e
1 changed files with 5 additions and 7 deletions
|
@ -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,16 +618,14 @@ class PackageManager(Utils):
|
|||
"""Grabs packages
|
||||
"""
|
||||
pkg_list, pkg_size = [], []
|
||||
for line in packages.splitlines():
|
||||
|
||||
if repo == "sbo":
|
||||
|
||||
if line.startswith("SLACKBUILD NAME: "):
|
||||
pkg_list.append(line[17:].strip())
|
||||
pkg_size.append("0 K")
|
||||
pkg_list = SBoGrep(name="").names()
|
||||
|
||||
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(
|
||||
|
|
Loading…
Add table
Reference in a new issue