cobbler/cobbler — pull request #1316 by mark987 (2014-10-22 01:23:14+00:00)
Title: action_reposync/yum_sync - honor mirror_locally

With mirror_locally false, yum_sync should write the .repo file and
nothing else, but this was broken by commit ed49c900.

Refector the routine to write out the local config file up front,
making the logic cleaner.