summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--py/mock/backend.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/py/mock/backend.py b/py/mock/backend.py
index a38fb9c..64d7455 100644
--- a/py/mock/backend.py
+++ b/py/mock/backend.py
@@ -269,9 +269,8 @@ class Root(object):
self.state("running yum")
try:
self._mountall()
- if not self.chrootWasCleaned:
- self.chroot_setup_cmd = 'update'
- self._yum(self.chroot_setup_cmd, returnOutput=1)
+ if self.chrootWasCleaned:
+ self._yum(self.chroot_setup_cmd, returnOutput=1)
finally:
self._umountall()