mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
jw.pkg.cmds.distro.backend.suse.Util.rpm(): Add method
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
421e75fc91
commit
f991bbfcd9
1 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,8 @@
|
|||
from ...Cmd import Cmd
|
||||
from ..Util import Util as Base
|
||||
|
||||
from ...lib.rpm import run_rpm
|
||||
|
||||
class Util(Base):
|
||||
|
||||
def __init__(self, parent: Cmd):
|
||||
|
|
@ -15,3 +17,6 @@ class Util(Base):
|
|||
cmd.extend(args)
|
||||
# Run sudo --login in case /etc/profile modifies ZYPP_CONF
|
||||
return await self._sudo(cmd, opts=['--login'])
|
||||
|
||||
async def rpm(self, *args, sudo=False):
|
||||
return await run_rpm(*args, sudo=sudo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue