Here's a small patch to handle mounting things into the chroot when
using the --chroot command, the same way we do when using --rebuild.

--- mock.py.orig        2008-01-16 13:42:21.000000000 -0500
+++ mock.py.mounts      2008-01-22 17:10:24.000000000 -0500
@@ -507,7 +507,12 @@
         log.info("Running in chroot: %s" % args)
         chroot.tryLockBuildRoot()
         chroot._resetLogging()
-        chroot.doChroot(args)
+
+        try:
+            chroot._mountall()
+            chroot.doChroot(args)
+        finally:
+            chroot._umountall()
 
     elif options.mode == 'installdeps':
         if len(args) == 0:
--
Fedora-buildsys-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Reply via email to