xbps_repo_sync: fix regression introduced in 87ca42f3.