locate_repo -> local_repo fix