Lines 72-77
class FakeVartree(vartree):
Link Here
|
72 |
self._portdb = portdb |
72 |
self._portdb = portdb |
73 |
self._global_updates = None |
73 |
self._global_updates = None |
74 |
|
74 |
|
|
|
75 |
self._debug = root_config.settings.get("PORTAGE_DEBUG") == "1" |
76 |
|
75 |
@property |
77 |
@property |
76 |
def root(self): |
78 |
def root(self): |
77 |
warnings.warn("The root attribute of " |
79 |
warnings.warn("The root attribute of " |
Lines 88-94
class FakeVartree(vartree):
Link Here
|
88 |
be accessed directly from the Package instance instead of via |
90 |
be accessed directly from the Package instance instead of via |
89 |
aux_get(). |
91 |
aux_get(). |
90 |
""" |
92 |
""" |
|
|
93 |
tracing = False |
94 |
if self._debug: |
95 |
if 'dev-libs/openssl' in cpv: |
96 |
tracing = True |
97 |
import portage.debug as portage_debug |
98 |
portage_debug.set_trace(True) |
91 |
matches = self._match(cpv, use_cache=use_cache) |
99 |
matches = self._match(cpv, use_cache=use_cache) |
|
|
100 |
if tracing: |
101 |
portage_debug.set_trace(False) |
102 |
portage.util.writemsg("FakeVartree._match_wrapper('%s'): %s\n" % |
103 |
(cpv, matches), noiselevel=-1) |
92 |
for cpv in matches: |
104 |
for cpv in matches: |
93 |
if cpv in self._aux_get_history: |
105 |
if cpv in self._aux_get_history: |
94 |
continue |
106 |
continue |
Lines 205-211
class FakeVartree(vartree):
Link Here
|
205 |
continue |
217 |
continue |
206 |
|
218 |
|
207 |
slot_counters[pkg.slot_atom] = pkg.counter |
219 |
slot_counters[pkg.slot_atom] = pkg.counter |
|
|
220 |
|
221 |
tracing = False |
222 |
if self._debug: |
223 |
if pkg.cpv.startswith('dev-libs/openssl'): |
224 |
portage.util.writemsg("FakeVartree._sync: %s slot_atom: %s counter: %s\n" % |
225 |
(pkg, pkg.slot_atom, pkg.counter), noiselevel=-1) |
226 |
tracing = True |
227 |
import portage.debug as portage_debug |
228 |
portage_debug.set_trace(True) |
208 |
pkg_vardb.cpv_inject(pkg) |
229 |
pkg_vardb.cpv_inject(pkg) |
|
|
230 |
if tracing: |
231 |
portage_debug.set_trace(False) |
209 |
|
232 |
|
210 |
real_vardb.flush_cache() |
233 |
real_vardb.flush_cache() |
211 |
|
234 |
|