reposetup/reposync: fixed accidental infinite loop