summaryrefslogtreecommitdiffstats
path: root/py/mock/backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/mock/backend.py')
-rw-r--r--py/mock/backend.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/py/mock/backend.py b/py/mock/backend.py
index c18026f..8d968bb 100644
--- a/py/mock/backend.py
+++ b/py/mock/backend.py
@@ -304,6 +304,15 @@ class Root(object):
self._umountall()
decorate(traceLog())
+ def yumUpdate(self):
+ """use yum to update the chroot"""
+ try:
+ self._mountall()
+ self._yum('update', returnOutput=1)
+ finally:
+ self._umountall()
+
+ decorate(traceLog())
def installSrpmDeps(self, *srpms):
"""figure out deps from srpm. call yum to install them"""
arg_string = self.preExistingDeps