diff --git a/pym/update/update.py b/pym/update/update.py index 102a67e..f84190c 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -1606,7 +1606,7 @@ class Update(MethodsInterface): self.endTask() return True - def update_layman(self, chroot_path): + def update_layman(self): """ Обновить базу layman :param builder_path: @@ -1616,6 +1616,6 @@ class Update(MethodsInterface): cmd_path = self.get_prog_path(cmd) if not cmd_path: raise UpdateError(_("Failed to find the %s command") % cmd) - layman = CommandExecutor(cmd_path, ["-f"], logfile=logfile) + layman = emerge_parser.CommandExecutor(cmd_path, ["-f"]) layman.execute() return layman.success() diff --git a/pym/update/utils/cl_update.py b/pym/update/utils/cl_update.py index 7ffb7c3..a3c5001 100644 --- a/pym/update/utils/cl_update.py +++ b/pym/update/utils/cl_update.py @@ -143,7 +143,7 @@ def get_synchronization_tasks(object_name): }, {'name': 'update_layman', 'message': __("Layman cache update"), - 'method': "Update.update_layman()", + 'method': Object('update_layman()'), 'condition': lambda Get: isPkgInstalled( "app-portage/layman", prefix=Get('cl_chroot_path')), 'essential': False,