if len(argv) < 1:
print("ERROR: insufficient parameters!")
return 2
- print(" ".join(portage.db[argv[0]]["porttree"].dbapi.getRepositories()))
+ print(" ".join(reversed(portage.db[argv[0]]["vartree"].settings.repositories.prepos_order)))
get_repos.uses_eroot = True
print("ERROR: invalid repository: %s" % arg, file=sys.stderr)
return 2
try:
- repo = portage.db[argv[0]]["porttree"].dbapi.repositories[arg]
+ repo = portage.db[argv[0]]["vartree"].settings.repositories[arg]
except KeyError:
print("")
return 1
if portage.dep._repo_name_re.match(arg) is None:
print("ERROR: invalid repository: %s" % arg, file=sys.stderr)
return 2
- path = portage.db[argv[0]]["porttree"].dbapi.getRepositoryPath(arg)
+ path = portage.db[argv[0]]["vartree"].settings.repositories.treemap.get(arg)
if path is None:
print("")
return 1
print("ERROR: invalid repository: %s" % arg, file=sys.stderr)
return 2
try:
- repo = portage.db[argv[0]]["porttree"].dbapi.repositories[arg]
+ repo = portage.db[argv[0]]["vartree"].settings.repositories[arg]
except KeyError:
print("")
return 1
print("ERROR: invalid repository: %s" % argv[1], file=sys.stderr)
return 2
try:
- repo = portage.db[argv[0]]["porttree"].dbapi.repositories[argv[1]]
+ repo = portage.db[argv[0]]["vartree"].settings.repositories[argv[1]]
except KeyError:
print("")
return 1
print("ERROR: invalid repository: %s" % argv[1], file=sys.stderr)
return 2
try:
- repo = portage.db[argv[0]]["porttree"].dbapi.repositories[argv[1]]
+ repo = portage.db[argv[0]]["vartree"].settings.repositories[argv[1]]
except KeyError:
print("")
return 1