Do the dependency cleanup in repo_done