diff --git a/mock/py/mockbuild/shadow_utils.py b/mock/py/mockbuild/shadow_utils.py index 2737fe816..8a662689b 100644 --- a/mock/py/mockbuild/shadow_utils.py +++ b/mock/py/mockbuild/shadow_utils.py @@ -24,7 +24,7 @@ def _execute_command(self, command, can_fail=False): if self.root.config['use_host_shadow_utils']: do_with_status(command + ['--prefix', self.root.make_chroot_path()], raiseExc=not can_fail) else: - self.root.doOutChroot(command, raiseExc=not can_fail) + self.root.doChroot(command, raiseExc=not can_fail) def delete_user(self, username, can_fail=False): """