From: Zac Medico Date: Sat, 10 Dec 2011 20:52:07 +0000 (-0800) Subject: repoman: eliminate eclass_db variable X-Git-Tag: v2.2.0_alpha80~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6163432c090c5e4959d8b09d7e6cf8a3bfc415eb;p=portage.git repoman: eliminate eclass_db variable --- diff --git a/bin/repoman b/bin/repoman index 43270f9e8..5924ba9ef 100755 --- a/bin/repoman +++ b/bin/repoman @@ -583,8 +583,7 @@ portdb = trees[root]['porttree'].dbapi # that are specified in layout.conf. repodir = os.path.realpath(portdir_overlay) repo_config = repoman_settings.repositories.get_repo_for_location(repodir) -eclass_db = portdb.repositories.get_repo_for_location(repodir).eclass_db -portdb.porttrees = list(eclass_db.porttrees) +portdb.porttrees = list(repo_config.eclass_db.porttrees) portdir = portdb.porttrees[0] # In order to disable manifest signatures, repos may set @@ -672,7 +671,7 @@ logging.info('PORTDIR_OVERLAY = "%s"' % env['PORTDIR_OVERLAY']) env['FEATURES'] = env.get('FEATURES', '') + ' -unknown-features-warn' categories = [] -for path in eclass_db.porttrees: +for path in repo_config.eclass_db.porttrees: categories.extend(portage.util.grabfile( os.path.join(path, 'profiles', 'categories'))) repoman_settings.categories = frozenset(