repoman: simplify repo location comparison
authorZac Medico <zmedico@gentoo.org>
Tue, 25 Jun 2013 19:24:40 +0000 (12:24 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 25 Jun 2013 19:24:40 +0000 (12:24 -0700)
bin/repoman

index 60286dbc82dbbc89fc1122dd4c26754894d0f428..faf0232482e0f4f141c90abe387cbd16d43982bf 100755 (executable)
@@ -615,7 +615,7 @@ commit_env = os.environ.copy()
 # list() is for iteration on a copy.
 for repo in list(repoman_settings.repositories):
        # all paths are canonical
-       if repo.location not in [repodir] + [x.location for x in repo_config.masters]:
+       if repo.location not in repo_config.eclass_db.porttrees:
                del repoman_settings.repositories[repo.name]
 
 if repo_config.allow_provide_virtual: