From efe2f87379de48404d0426d6b1e999b6878cf394 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Dec 21 2017 20:35:44 +0000 Subject: Set mock old-chroot for runroot if not new-chroot Signed-off-by: Patrick Uiterwijk --- diff --git a/plugins/builder/runroot.py b/plugins/builder/runroot.py index 373e880..7f07034 100644 --- a/plugins/builder/runroot.py +++ b/plugins/builder/runroot.py @@ -185,6 +185,8 @@ class RunRootTask(koji.tasks.BaseTaskHandler): mock_cmd = ['chroot'] if new_chroot: mock_cmd.append('--new-chroot') + else: + mock_cmd.append('--old-chroot') if skip_setarch: #we can't really skip it, but we can set it to the current one instead of of the chroot one myarch = platform.uname()[5]