Lines 727-732
Link Here
|
727 |
|
727 |
|
728 |
|
728 |
|
729 |
arch_caches={} |
729 |
arch_caches={} |
|
|
730 |
arch_xmatch_caches = {} |
730 |
for x in scanlist: |
731 |
for x in scanlist: |
731 |
#ebuilds and digests added to cvs respectively. |
732 |
#ebuilds and digests added to cvs respectively. |
732 |
if verbose: |
733 |
if verbose: |
Lines 1136-1151
Link Here
|
1136 |
profdir = portdir+"/profiles/"+prof[0] |
1137 |
profdir = portdir+"/profiles/"+prof[0] |
1137 |
|
1138 |
|
1138 |
if prof[0] in arch_caches: |
1139 |
if prof[0] in arch_caches: |
1139 |
dep_settings, xcache = arch_caches[prof[0]] |
1140 |
dep_settings = arch_caches[prof[0]] |
1140 |
else: |
1141 |
else: |
1141 |
dep_settings = portage.config( |
1142 |
dep_settings = portage.config( |
1142 |
config_profile_path=profdir, |
1143 |
config_profile_path=profdir, |
1143 |
config_incrementals=portage_const.INCREMENTALS, |
1144 |
config_incrementals=portage_const.INCREMENTALS, |
1144 |
local_config=False) |
1145 |
local_config=False) |
1145 |
portdb.melt() |
1146 |
arch_caches[prof[0]] = dep_settings |
1146 |
portdb.freeze() |
|
|
1147 |
xcache = portdb.xcache |
1148 |
arch_caches[prof[0]] = (dep_settings, xcache) |
1149 |
while True: |
1147 |
while True: |
1150 |
try: |
1148 |
try: |
1151 |
# Protect ACCEPT_KEYWORDS from config.regenerate() |
1149 |
# Protect ACCEPT_KEYWORDS from config.regenerate() |
Lines 1154-1159
Link Here
|
1154 |
except ValueError: |
1152 |
except ValueError: |
1155 |
break |
1153 |
break |
1156 |
|
1154 |
|
|
|
1155 |
xmatch_cache_key = (prof[0], tuple(groups)) |
1156 |
xcache = arch_xmatch_caches.get(xmatch_cache_key) |
1157 |
if xcache is None: |
1158 |
portdb.melt() |
1159 |
portdb.freeze() |
1160 |
xcache = portdb.xcache |
1161 |
arch_xmatch_caches[xmatch_cache_key] = xcache |
1162 |
|
1157 |
trees["/"]["porttree"].settings = dep_settings |
1163 |
trees["/"]["porttree"].settings = dep_settings |
1158 |
portdb.mysettings = dep_settings |
1164 |
portdb.mysettings = dep_settings |
1159 |
portdb.xcache = xcache |
1165 |
portdb.xcache = xcache |