From 3bc5fb958deb809fc04d6a74ce6688e093f5831a Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 11 Aug 2009 14:46:31 -0700 Subject: 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. --- py/mock/backend.py | 5 ++--- 1 file 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() -- cgit