porto.nocolor()
keywords = keywords_header(prefix, highlight_arch, order)
if len(package) > 0:
- settings = portc(local_config=False)
- dbapi = portdbapi(mysettings=settings)
+ mysettings = portc(local_config=False)
+ dbapi = portdbapi(mysettings=mysettings)
if not use_overlays:
dbapi.porttrees = [dbapi.porttree_root]
map(lambda x: process_display(x, keywords, dbapi), package)
package= '%s/%s' % (os.path.basename(os.path.abspath('../')), os.path.basename(currdir))
ourtree = os.path.abspath('../../')
overlays = '%s %s' % (ports['PORTDIR_OVERLAY'], ourtree)
- settings = portc(local_config=False, env={'PORTDIR_OVERLAY': overlays})
- dbapi = portdbapi(mysettings=settings)
+ mysettings = portc(local_config=False, env={'PORTDIR_OVERLAY': overlays})
+ dbapi = portdbapi(mysettings=mysettings)
# specify that we want just our nice tree we are in cwd
dbapi.porttrees = [ourtree]
process_display(package, keywords, dbapi)
def __getMaskStatus(self, cpv):
"""Figure out if package is pmasked."""
try:
- if port.getmaskingstatus(cpv) == ['package.mask']:
+ mysettings = port.config(local_config=False)
+ if port.getmaskingstatus(cpv, settings=mysettings) == ['package.mask']:
return True
except:
# occurs when package is not known by portdb