cobbler/cobbler — pull request #80 by jimi1283 (2012-03-03 07:12:36+00:00)
Title: Fix for issue #73 - Broken symlinks on distro rename from web_gui

This was actually fairly involved, and I think the same issue was causing issue #72. That issue was marked as resolved, but I was seeing the same problem when the distro was multi-arch based. For example, I have F14 imported, which created both i386 and x86_64 distros.

The root cause is the fact that for multi-arch distros, there is no source of truth for the distro path besides the kernel/initrd paths. The fix was somewhat invasive, which was to create a new function in utils.py to find the root path of a distro and to start using that for utils.link_distros(). There weren't too many places that use link_distros() but there were some so it could break something I don't have a setup to test. Because of this possibility, I'm doing a pull request so others can review the change and not committing it directly to the master branch.