Logic to handle alternative repositories