portdir = settings.get('PORTDIR', '')
portdir_overlay = settings.get('PORTDIR_OVERLAY', '')
add_overlays(portdir, portdir_overlay, prepos, ignored_map, ignored_location_map)
- if paths:
- parse(paths, prepos, ignored_map, ignored_location_map)
- else:
- prepos['DEFAULT'] = RepoConfig("DEFAULT", {"main_repo": "gentoo"})
-
+ parse(paths, prepos, ignored_map, ignored_location_map)
ignored_repos = tuple((repo_name, tuple(paths)) \
for repo_name, paths in ignored_map.items())
repos_conf_file = os.path.join(user_config_dir, "repos.conf")
f = open(repos_conf_file, "w")
- priority = 1
+ priority = 999
for repo in sorted(self.repo_dirs.keys()):
f.write("[%s]\n" % repo)
f.write("LOCATION=%s\n" % self.repo_dirs[repo])
f.write("PRIORITY=%s\n" % 1000)
else:
f.write("PRIORITY=%s\n" % priority)
- priority += 1
+ priority -= 1
f.close()
for config_file, lines in user_config.items():