diff options
author | Clark Williams <williams@redhat.com> | 2009-07-08 11:43:42 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2009-07-08 11:43:42 -0500 |
commit | b9819b8f173d6e0cc2ac6c2e189691e1854ef2a8 (patch) | |
tree | 8578e4b3c0612f170f1a7a6f725486cbc1de305f /py | |
parent | b4830cdc0facfdd1d678a16449a2e2c3120d8625 (diff) | |
download | mock-b9819b8f173d6e0cc2ac6c2e189691e1854ef2a8.tar.gz mock-b9819b8f173d6e0cc2ac6c2e189691e1854ef2a8.tar.xz mock-b9819b8f173d6e0cc2ac6c2e189691e1854ef2a8.zip |
added code to raise exception when --shell specified for uninitialized
chroot. BZ# 506288
Signed-off-by: Clark Williams <williams@redhat.com>
Diffstat (limited to 'py')
-rwxr-xr-x | py/mock.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |