There shouldn't be a potential race here, because the repository code doesn't allow multiple uploads of the same version.