Fix 460

I would move the handling of disabled repos and the priorities out of the xml block.