From 63395f414fdd956894abead091211f65fa405ebc Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 17 Feb 2026 11:56:19 +0100 Subject: [PATCH] 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 --- src/python/jw/pkg/cmds/distro/backend/arch/Install.py | 2 +- src/python/jw/pkg/cmds/distro/backend/debian/Install.py | 2 +- src/python/jw/pkg/cmds/distro/backend/debian/Refresh.py | 2 +- src/python/jw/pkg/cmds/distro/backend/redhat/Install.py | 2 +- src/python/jw/pkg/cmds/distro/backend/redhat/Refresh.py | 4 ++-- src/python/jw/pkg/cmds/distro/backend/suse/Dup.py | 2 +- src/python/jw/pkg/cmds/distro/backend/suse/Install.py | 2 +- src/python/jw/pkg/cmds/distro/backend/suse/Refresh.py | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/python/jw/pkg/cmds/distro/backend/arch/Install.py b/src/python/jw/pkg/cmds/distro/backend/arch/Install.py index d1fafb6a..231c6c0d 100644 --- a/src/python/jw/pkg/cmds/distro/backend/arch/Install.py +++ b/src/python/jw/pkg/cmds/distro/backend/arch/Install.py @@ -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) diff --git a/src/python/jw/pkg/cmds/distro/backend/debian/Install.py b/src/python/jw/pkg/cmds/distro/backend/debian/Install.py index f04d2021..d008cdb9 100644 --- a/src/python/jw/pkg/cmds/distro/backend/debian/Install.py +++ b/src/python/jw/pkg/cmds/distro/backend/debian/Install.py @@ -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) diff --git a/src/python/jw/pkg/cmds/distro/backend/debian/Refresh.py b/src/python/jw/pkg/cmds/distro/backend/debian/Refresh.py index 9f8bd704..719dee23 100644 --- a/src/python/jw/pkg/cmds/distro/backend/debian/Refresh.py +++ b/src/python/jw/pkg/cmds/distro/backend/debian/Refresh.py @@ -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') diff --git a/src/python/jw/pkg/cmds/distro/backend/redhat/Install.py b/src/python/jw/pkg/cmds/distro/backend/redhat/Install.py index b2cd0cb8..69923044 100644 --- a/src/python/jw/pkg/cmds/distro/backend/redhat/Install.py +++ b/src/python/jw/pkg/cmds/distro/backend/redhat/Install.py @@ -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) diff --git a/src/python/jw/pkg/cmds/distro/backend/redhat/Refresh.py b/src/python/jw/pkg/cmds/distro/backend/redhat/Refresh.py index 6dd6c714..e6a16824 100644 --- a/src/python/jw/pkg/cmds/distro/backend/redhat/Refresh.py +++ b/src/python/jw/pkg/cmds/distro/backend/redhat/Refresh.py @@ -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') diff --git a/src/python/jw/pkg/cmds/distro/backend/suse/Dup.py b/src/python/jw/pkg/cmds/distro/backend/suse/Dup.py index 7b320804..4e5af5b6 100644 --- a/src/python/jw/pkg/cmds/distro/backend/suse/Dup.py +++ b/src/python/jw/pkg/cmds/distro/backend/suse/Dup.py @@ -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') diff --git a/src/python/jw/pkg/cmds/distro/backend/suse/Install.py b/src/python/jw/pkg/cmds/distro/backend/suse/Install.py index 00a7e939..aa0790eb 100644 --- a/src/python/jw/pkg/cmds/distro/backend/suse/Install.py +++ b/src/python/jw/pkg/cmds/distro/backend/suse/Install.py @@ -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) diff --git a/src/python/jw/pkg/cmds/distro/backend/suse/Refresh.py b/src/python/jw/pkg/cmds/distro/backend/suse/Refresh.py index 22854877..59d489b3 100644 --- a/src/python/jw/pkg/cmds/distro/backend/suse/Refresh.py +++ b/src/python/jw/pkg/cmds/distro/backend/suse/Refresh.py @@ -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')