summaryrefslogtreecommitdiffstats
path: root/py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2009-08-11 14:46:31 -0700
committerJesse Keating <jkeating@redhat.com>2009-08-11 14:46:31 -0700
commit3bc5fb958deb809fc04d6a74ce6688e093f5831a (patch)
tree8ab2e43efe1930959bf280648f9afec28c2055e6 /py
parent32ed5086e17f6a2322aa742094da0db2c10b348c (diff)
downloadmock-3bc5fb958deb809fc04d6a74ce6688e093f5831a.tar.gz
mock-3bc5fb958deb809fc04d6a74ce6688e093f5831a.tar.xz
mock-3bc5fb958deb809fc04d6a74ce6688e093f5831a.zip
Don't automatically update the chroot in a --no-clean scenario
This causes largely unnecessary yum runs and delays builds. The new behavior would just skip the yum call all together, unless the chroot was cleaned, in which case the setup command is called.
Diffstat (limited to 'py')
-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()