From 5e0a1972beb98d31772c8eb10ac70df5f608e2a1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 15 Oct 2011 11:58:26 -0700 Subject: [PATCH] repoman: handle categories for multiple masters Also, copy repoman_settings.categories to each individual profile's dep_settings.categories attribute, in order to ensure that portdbapi.cp_list() uses the correct category set. --- bin/repoman | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/repoman b/bin/repoman index b80b78386..cdf1001bc 100755 --- a/bin/repoman +++ b/bin/repoman @@ -677,7 +677,7 @@ logging.info('PORTDIR_OVERLAY = "%s"' % env['PORTDIR_OVERLAY']) env['FEATURES'] = env.get('FEATURES', '') + ' -unknown-features-warn' categories = [] -for path in set([portdir, repodir]): +for path in repo_info.eclass_db.porttrees: categories.extend(portage.util.grabfile( os.path.join(path, 'profiles', 'categories'))) repoman_settings.categories = frozenset( @@ -2000,6 +2000,7 @@ for x in effective_scanlist: local_config=False, _unmatched_removal=options.unmatched_removal, env=env, _eprefix=eprefix) + dep_settings.categories = repoman_settings.categories if options.without_mask: dep_settings._mask_manager = \ copy.deepcopy(dep_settings._mask_manager) -- 2.26.2