Description of problem:
When using cache, preping install fails because of yum.conf symlink already
present in cache tree
Version-Release number of selected component (if applicable):
rpm -q mock
Steps to Reproduce:
1. Create a mock cache like said in MockTricks
2. Try to build a package
Traceback (most recent call last):
File "/usr/bin/mock", line 1046, in <module>
File "/usr/bin/mock", line 1043, in main
File "/usr/bin/mock", line 910, in do_rebuild
File "/usr/bin/mock", line 254, in prep
File "/usr/bin/mock", line 659, in _prep_install
os.symlink('../yum.conf', os.path.join(yumdir, 'yum.conf'))
OSError: [Errno 17] File exists
Building of the package
A if os.path.exists should be done over the symlink path like it is done for
regular file yum.conf and devices above
Current workaround is to edit the cache to remove the symlink each time the
cache is generated.
*** Bug 242167 has been marked as a duplicate of this bug. ***
Created attachment 156200 [details]
Simple patch to fix this
This patch fixes the problem for me.
mock-0.7.1-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
Works for me but added another trouble related to koji
I fill a separate bug
mock-0.7.1-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.