reposync: fix done variable, was declared after the fact instead of before