repoman: add 'repository' to portdbapi cache
authorZac Medico <zmedico@gentoo.org>
Sat, 8 Oct 2011 06:52:21 +0000 (23:52 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 8 Oct 2011 06:52:21 +0000 (23:52 -0700)
This fixes _getMaskAtom to work correctly with the repo atoms that are
generated by MaskManager, solving the issue reported here:

https://github.com/cschwan/sage-on-gentoo/issues/90#issuecomment-2324953

bin/repoman

index 5d2a84c5f128c89af7e8e740c8decbd0b865a4f1..38f969464d8eb470fd87afeb2d6429392931eaa2 100755 (executable)
@@ -652,7 +652,7 @@ root_config = RootConfig(repoman_settings, trees[root], None)
 # We really only need to cache the metadata that's necessary for visibility
 # filtering. Anything else can be discarded to reduce memory consumption.
 portdb._aux_cache_keys.clear()
-portdb._aux_cache_keys.update(["EAPI", "IUSE", "KEYWORDS", "SLOT"])
+portdb._aux_cache_keys.update(["EAPI", "IUSE", "KEYWORDS", "repository", "SLOT"])
 
 reposplit = myreporoot.split(os.path.sep)
 repolevel = len(reposplit)