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:
Jan Lindemann 2026-02-17 11:56:19 +01:00
commit 63395f414f
8 changed files with 9 additions and 9 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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')

View file

@ -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)

View file

@ -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')

View file

@ -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')

View file

@ -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)

View file

@ -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')