Mock & yum.conf Don't Play Nicely...

Peter Gordon peter at thecodergeek.com
Sat Apr 21 23:23:37 UTC 2007


Hi, all. I'm going through the vegastrike reviews and I can't seem to
build anything in mock. Whether or not I use the autocache feature, it
still bails out with the following error:

$ mock --debug --autocache -r fedora-devel-x86_64-core SRPMS/vegastrike*
DEBUG: ensuring
dir /var/lib/mock/fedora-development-x86_64-core/root/etc/yum
Traceback (most recent call last):
  File "/usr/bin/mock", line 1046, in <module>
    main()
  File "/usr/bin/mock", line 1043, in main
    do_rebuild(config_opts, srpms)
  File "/usr/bin/mock", line 910, in do_rebuild
    my.prep()
  File "/usr/bin/mock", line 254, in prep
    self._prep_install()
  File "/usr/bin/mock", line 659, in _prep_install
    os.symlink('../yum.conf', os.path.join(yumdir, 'yum.conf'))
OSError: [Errno 17] File exists

I did a bit of googling, and it seems this was seen by Chitlesh GOORAH
about a month ago; but no workaround/fix was addressed in that thread
which he started. Nor could I find it in the list of bugs for the mock
component on Fedora's bugzilla either.

My mock configs are the default; and I'm using x86_64 Development
updated as of this morning (20070421 rawhide). Is there a patch I can
apply or something I can tweak in the mock config to make it stop doing
this?

Thanks for any help/advice.
-- 
Peter Gordon (codergeek42) / FSF & EFF Member
GnuPG Public Key ID: 0xFFC19479 / Fingerprint:
  DD68 A414 56BD 6368 D957 9666 4268 CB7A FFC1 9479
Blog: http://thecodergeek.com/blog/ 
About: http://fedoraproject.org/wiki/PeterGordon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-maintainers/attachments/20070421/b1a69e52/attachment.sig>


More information about the Fedora-maintainers mailing list