Исправлен вызов update_layman

3.6.0_beta6
parent c28b889044
commit 26501cd5ed

@ -1606,7 +1606,7 @@ class Update(MethodsInterface):
self.endTask() self.endTask()
return True return True
def update_layman(self, chroot_path): def update_layman(self):
""" """
Обновить базу layman Обновить базу layman
:param builder_path: :param builder_path:
@ -1616,6 +1616,6 @@ class Update(MethodsInterface):
cmd_path = self.get_prog_path(cmd) cmd_path = self.get_prog_path(cmd)
if not cmd_path: if not cmd_path:
raise UpdateError(_("Failed to find the %s command") % cmd) 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() layman.execute()
return layman.success() return layman.success()

@ -143,7 +143,7 @@ def get_synchronization_tasks(object_name):
}, },
{'name': 'update_layman', {'name': 'update_layman',
'message': __("Layman cache update"), 'message': __("Layman cache update"),
'method': "Update.update_layman()", 'method': Object('update_layman()'),
'condition': lambda Get: isPkgInstalled( 'condition': lambda Get: isPkgInstalled(
"app-portage/layman", prefix=Get('cl_chroot_path')), "app-portage/layman", prefix=Get('cl_chroot_path')),
'essential': False, 'essential': False,

Loading…
Cancel
Save