mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-28 13:55:24 +02:00
cmds.distro.lib.rpm.query_packages(): Add function
Replace all_installed_packages() by query_packages(). The function takes an optional list of packages to be queried. If it's empty, a list of all installed packages are returned. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
3e9ec1f6c5
commit
1bb3c166d6
2 changed files with 29 additions and 25 deletions
|
|
@ -4,7 +4,7 @@ from typing import Iterable
|
|||
from argparse import Namespace
|
||||
|
||||
from ...lib.Package import Package
|
||||
from ...lib.rpm import all_installed_packages
|
||||
from ...lib.rpm import query_packages
|
||||
from ...Cmd import Cmd
|
||||
from ..BeSelect import BeSelect as Base
|
||||
|
||||
|
|
@ -14,4 +14,4 @@ class Select(Base):
|
|||
super().__init__(parent)
|
||||
|
||||
async def _all_installed_packages(self) -> Iterable[Package]:
|
||||
return await all_installed_packages()
|
||||
return await query_packages()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue