mock mock.py,1.37,1.38

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Tue Mar 21 21:50:59 UTC 2006


Author: dcbw

Update of /cvs/fedora/mock
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9698

Modified Files:
	mock.py 
Log Message:
Patch from Clark Williams <williams at redhat.com>

Set up links to /dev/std[in|out|err] in buildroots




Index: mock.py
===================================================================
RCS file: /cvs/fedora/mock/mock.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- mock.py	15 Mar 2006 22:14:38 -0000	1.37
+++ mock.py	21 Mar 2006 21:50:52 -0000	1.38
@@ -555,6 +555,14 @@
         if not os.path.exists(devpath):
             os.symlink('../proc/self/fd', devpath)
         
+        fd = 0
+        for item in ('stdin', 'stdout', 'stderr'):
+            devpath =  os.path.join(self.rootdir, 'dev', item)
+            if not os.path.exists(devpath):
+                fdpath = os.path.join('../proc/self/fd', str(fd))
+                os.symlink(fdpath, devpath)
+            fd += 1
+
         for item in [os.path.join(self.rootdir, 'etc', 'mtab'),
                      os.path.join(self.rootdir, 'etc', 'fstab'),
                      os.path.join(self.rootdir, 'var', 'log', 'yum.log')]:




More information about the fedora-extras-commits mailing list