# now use the data to generate output
if pkg.installed or not slot_matches:
- repoadd = self.conf.repo_display.repoStr(
+ self.repoadd = self.conf.repo_display.repoStr(
pkg_info.repo_path_real)
else:
repo_path_prev = None
repo_path_prev = self.portdb.getRepositoryPath(
repo_name_prev)
if repo_path_prev == pkg_info.repo_path_real:
- repoadd = self.conf.repo_display.repoStr(
+ self.repoadd = self.conf.repo_display.repoStr(
pkg_info.repo_path_real)
else:
- repoadd = "%s=>%s" % (
+ self.repoadd = "%s=>%s" % (
self.conf.repo_display.repoStr(repo_path_prev),
self.conf.repo_display.repoStr(pkg_info.repo_path_real))
- if repoadd:
- repoadd_set.add(repoadd)
+ if self.repoadd:
+ repoadd_set.add(self.repoadd)
@staticmethod
addl, pkg_info.oldbest, myinslotlist = \
self._get_installed_best(pkg, pkg_info)
self.verboseadd = ""
- repoadd = None
+ self.repoadd = None
self._display_use(pkg, pkg_info.oldbest, myinslotlist)
self.recheck_hidden(pkg)
if self.conf.verbosity == 3:
if self.conf.columns and pkg.operation == "uninstall":
continue
- self.print_msg.append((myprint, self.verboseadd, repoadd))
+ self.print_msg.append((myprint, self.verboseadd, self.repoadd))
if not self.conf.tree_display \
and not self.conf.no_restart \
repo_paths = set()
for root_config in roots.values():
portdir = root_config.settings.get("PORTDIR")
- if root_config.settings.repositories:
- repo_paths.update(root_config.settings.repositories.repoLocationList())
+ if portdir:
+ repo_paths.add(portdir)
+ overlays = root_config.settings.get("PORTDIR_OVERLAY")
+ if overlays:
+ repo_paths.update(overlays.split())
repo_paths = list(repo_paths)
self._repo_paths = repo_paths
self._repo_paths_real = [ os.path.realpath(repo_path) \
def repoStr(self, repo_path_real):
real_index = -1
if repo_path_real:
- repo_path_real = os.path.realpath(repo_path_real)
real_index = self._repo_paths_real.index(repo_path_real)
if real_index == -1:
s = "?"