blob: cb389e92f384031cbf25472c154464988638721a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env python
import portage
portdb = portage.portdb
portdb.porttrees = [portdb.porttree_root] # exclude overlays
settings = portage.config(clone=portage.settings)
vardb = portage.db[settings['ROOT']]['vartree'].dbapi
for cpv in vardb.cpv_all():
slot, = vardb.aux_get(cpv, ['SLOT'])
cp = portage.cpv_getkey(cpv)
atom = cp
if slot:
atom += ":" + slot
if not portdb.xmatch('match-visible', atom):
print atom
|