diff options
author | 2009-12-06 18:56:27 +0100 | |
---|---|---|
committer | 2009-12-06 18:56:27 +0100 | |
commit | 5f62725f72880ead678a2967e2501da202f28e90 (patch) | |
tree | 837f750e08e4f46006cc7e7e83602108e7d0711d /unavailable_installed.py | |
download | flameeyes-tinderbox-5f62725f72880ead678a2967e2501da202f28e90.tar.gz flameeyes-tinderbox-5f62725f72880ead678a2967e2501da202f28e90.tar.bz2 flameeyes-tinderbox-5f62725f72880ead678a2967e2501da202f28e90.zip |
Add first the main tinderbox Python scripts written by Zac.
Diffstat (limited to 'unavailable_installed.py')
-rwxr-xr-x | unavailable_installed.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/unavailable_installed.py b/unavailable_installed.py new file mode 100755 index 0000000..cb389e9 --- /dev/null +++ b/unavailable_installed.py @@ -0,0 +1,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 |