summaryrefslogtreecommitdiffstats
path: root/py/mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/mock.py')
-rwxr-xr-xpy/mock.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mock.py b/py/mock.py
index c5f057b..a09e6d8 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -566,6 +566,8 @@ def main(ret):
elif options.mode == 'shell':
chroot.tryLockBuildRoot()
+ if not os.path.exists(chroot.makeChrootPath()):
+ raise RuntimeError, "chroot %s not initialized!" % chroot.makeChrootPath()
try:
chroot._mountall()
cmd = ' '.join(args)