reposync: fix flags