reposync: forgot a then for an if statement