mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
jw.pkg.cmds.distro.backend.*.*: Use util
Don't call self.some_utility() anylonger, make it self.util.some_utility(). Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
82e92ac068
commit
63395f414f
8 changed files with 9 additions and 9 deletions
|
|
@ -13,4 +13,4 @@ class Install(Util):
|
|||
async def run(self, args: Namespace):
|
||||
pacman_args = ['-S', '--needed']
|
||||
pacman_args.extend(args.packages)
|
||||
await self.pacman(*pacman_args)
|
||||
await self.util.pacman(*pacman_args)
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ class Install(Util):
|
|||
super().__init__(parent)
|
||||
|
||||
async def run(self, args: Namespace):
|
||||
return await self.apt_get('install', *args.packages)
|
||||
return await self.util.apt_get('install', *args.packages)
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ class Refresh(Util):
|
|||
super().__init__(parent)
|
||||
|
||||
async def run(self, args: Namespace):
|
||||
return await self.apt_get('update')
|
||||
return await self.util.apt_get('update')
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@ class Install(Util):
|
|||
if not self.interactive:
|
||||
yum_args.append['-y']
|
||||
yum_args.extend(args.packages)
|
||||
return await self.yum(*yum_args)
|
||||
return await self.util.yum(*yum_args)
|
||||
|
|
|
|||
|
|
@ -11,5 +11,5 @@ class Refresh(Util):
|
|||
super().__init__(parent)
|
||||
|
||||
async def run(self, args: Namespace):
|
||||
await self.yum('clean', 'expire-cache')
|
||||
await self.yum('makecache')
|
||||
await self.util.yum('clean', 'expire-cache')
|
||||
await self.util.yum('makecache')
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ class Dup(Util):
|
|||
super().__init__(parent)
|
||||
|
||||
async def run(self, args: Namespace):
|
||||
return await self.zypper('dup', '--force-resolution', '--auto-agree-with-licenses')
|
||||
return await self.util.zypper('dup', '--force-resolution', '--auto-agree-with-licenses')
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ class Install(Util):
|
|||
super().__init__(parent)
|
||||
|
||||
async def run(self, args: Namespace):
|
||||
return await self.zypper('install', *args.packages)
|
||||
return await self.util.zypper('install', *args.packages)
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ class Refresh(Util):
|
|||
super().__init__(parent)
|
||||
|
||||
async def run(self, args: Namespace):
|
||||
return await self.zypper('refresh')
|
||||
return await self.util.zypper('refresh')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue