diff options
author | Paul Howarth <paul@city-fan.org> | 2010-08-11 11:54:01 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-08-12 10:58:21 -0500 |
commit | 59020475e4b76f324298a6c719b55f7435d33ac9 (patch) | |
tree | e76c3e0af4c38631e57f7567ce76ffc6f46438b5 /py/mock/backend.py | |
parent | bf71ffd587ff230ba58b700f465bba41458a4270 (diff) | |
download | mock-59020475e4b76f324298a6c719b55f7435d33ac9.tar.gz mock-59020475e4b76f324298a6c719b55f7435d33ac9.tar.xz mock-59020475e4b76f324298a6c719b55f7435d33ac9.zip |
Update packages after unpacking root cache
Fix problem introduced in commit 3bc5fb958deb809fc04d6a74ce6688e093f5831a
where the buildroot is no longer updated after unpacking the root cache.
http://bugzilla.redhat.com/557526
Signed-off-by: Clark Williams <williams@redhat.com>
Diffstat (limited to 'py/mock/backend.py')
-rw-r--r-- | py/mock/backend.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/mock/backend.py b/py/mock/backend.py index d604df6..9fbfbea 100644 --- a/py/mock/backend.py +++ b/py/mock/backend.py @@ -34,6 +34,7 @@ class Root(object): self._state = 'unstarted' self.uidManager = uidManager self._hooks = {} + self.chrootWasCached = False self.chrootWasCleaned = False self.preExistingDeps = "" self.logging_initialized = False @@ -311,6 +312,8 @@ class Root(object): self._mountall() if self.chrootWasCleaned: self._yum(self.chroot_setup_cmd, returnOutput=1) + if self.chrootWasCached: + self._yum('update', returnOutput=1) # create user self._makeBuildUser() |