Lines 124-129
Link Here
|
124 |
"Define self.settings as an alias for self.mysettings, " + \ |
124 |
"Define self.settings as an alias for self.mysettings, " + \ |
125 |
"for conformity with other dbapi classes.") |
125 |
"for conformity with other dbapi classes.") |
126 |
|
126 |
|
|
|
127 |
@property |
128 |
def _categories(self): |
129 |
return self.settings.categories |
130 |
|
127 |
def __init__(self, porttree_root, mysettings=None): |
131 |
def __init__(self, porttree_root, mysettings=None): |
128 |
portdbapi.portdbapi_instances.append(self) |
132 |
portdbapi.portdbapi_instances.append(self) |
129 |
|
133 |
|
Lines 133-139
Link Here
|
133 |
else: |
137 |
else: |
134 |
from portage import settings |
138 |
from portage import settings |
135 |
self.mysettings = config(clone=settings) |
139 |
self.mysettings = config(clone=settings) |
136 |
self._categories = self.mysettings.categories |
140 |
|
137 |
# This is strictly for use in aux_get() doebuild calls when metadata |
141 |
# This is strictly for use in aux_get() doebuild calls when metadata |
138 |
# is generated by the depend phase. It's safest to use a clone for |
142 |
# is generated by the depend phase. It's safest to use a clone for |
139 |
# this purpose because doebuild makes many changes to the config |
143 |
# this purpose because doebuild makes many changes to the config |