From 95054d7ff5c2491ae1f9159ca973b71f99bfd297 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 May 2012 14:49:29 -0700 Subject: config: propagate SYNC to self.repositories This resolves a circular dependency on the SYNC variable, which is useful for bug #414961, since we want to be able to initialize self.repositories before the SYNC variable is known. --- pym/portage/repository/config.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'pym/portage/repository') diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index defdb47c8..e544c57f3 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -483,13 +483,6 @@ class RepoConfigLoader(object): prepos_order = [repo.name for (key, repo) in prepos_order if repo.name == key and repo.location is not None] - if portdir in location_map: - portdir_repo = prepos[location_map[portdir]] - portdir_sync = settings.get('SYNC', '') - #if SYNC variable is set and not overwritten by repos.conf - if portdir_sync and not portdir_repo.sync: - portdir_repo.sync = portdir_sync - if prepos['DEFAULT'].main_repo is None or \ prepos['DEFAULT'].main_repo not in prepos: #setting main_repo if it was not set in repos.conf -- cgit v1.2.3-1-g7c22