missing = True
self.name = name
if self.location is not None:
- if os.path.isdir(location):
- eapi = read_corresponding_eapi_file(os.path.join(self.location, REPO_NAME_LOC))
- self.name, missing = self._read_valid_repo_name(self.location)
- else:
- missing = not portage._sync_disabled_warnings
+ eapi = read_corresponding_eapi_file(os.path.join(self.location, REPO_NAME_LOC))
+ self.name, missing = self._read_valid_repo_name(self.location)
+ if missing and portage._sync_disabled_warnings:
+ self.name = name
+ missing = False
elif name == "DEFAULT":
missing = False