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 cpv in ('=dev-libs/openssl-0.9.8*', 'dev-libs/openssl:0.9.8'): |
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 self._debug: |
101 |
portage.util.writemsg("FakeVartree._match_wrapper('%s'): %s\n" % |
102 |
(cpv, matches), noiselevel=-1) |
103 |
if tracing: |
104 |
portage_debug.set_trace(False) |
105 |
|
92 |
for cpv in matches: |
106 |
for cpv in matches: |
93 |
if cpv in self._aux_get_history: |
107 |
if cpv in self._aux_get_history: |
94 |
continue |
108 |
continue |
Lines 199-204
class FakeVartree(vartree):
Link Here
|
199 |
if pkg is None: |
213 |
if pkg is None: |
200 |
pkg = self._pkg(cpv) |
214 |
pkg = self._pkg(cpv) |
201 |
|
215 |
|
|
|
216 |
if self._debug: |
217 |
portage.util.writemsg("FakeVartree._sync: %s slot_atom: %s counter: %s\n" % |
218 |
(pkg, pkg.slot_atom, pkg.counter), noiselevel=-1) |
219 |
|
202 |
other_counter = slot_counters.get(pkg.slot_atom) |
220 |
other_counter = slot_counters.get(pkg.slot_atom) |
203 |
if other_counter is not None: |
221 |
if other_counter is not None: |
204 |
if other_counter > pkg.counter: |
222 |
if other_counter > pkg.counter: |
Lines 207-212
class FakeVartree(vartree):
Link Here
|
207 |
slot_counters[pkg.slot_atom] = pkg.counter |
225 |
slot_counters[pkg.slot_atom] = pkg.counter |
208 |
pkg_vardb.cpv_inject(pkg) |
226 |
pkg_vardb.cpv_inject(pkg) |
209 |
|
227 |
|
|
|
228 |
if self._debug: |
229 |
portage.util.writemsg("FakeVartree._sync:\n", noiselevel=-1) |
230 |
for cpv in sorted(pkg_vardb.cpv_all()): |
231 |
portage.util.writemsg("\t%s\n" % (cpv,), noiselevel=-1) |
232 |
|
210 |
real_vardb.flush_cache() |
233 |
real_vardb.flush_cache() |
211 |
|
234 |
|
212 |
def _pkg(self, cpv): |
235 |
def _pkg(self, cpv): |