diff options
author | Alex Legler <alex@a3li.li> | 2015-03-20 19:23:10 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-03-20 19:23:10 +0100 |
commit | f7632e9c853bb0a711a14d74e40355f791c1d927 (patch) | |
tree | c05597f7a69d7c206b9c8449013243b4e4ab0597 /pkg_lists/pkglist.py | |
parent | fix packages-inheriting-eclasses script from failing getting timestamp (diff) | |
download | qa-scripts-f7632e9c853bb0a711a14d74e40355f791c1d927.tar.gz qa-scripts-f7632e9c853bb0a711a14d74e40355f791c1d927.tar.bz2 qa-scripts-f7632e9c853bb0a711a14d74e40355f791c1d927.zip |
Add package list script from www.g.o
Diffstat (limited to 'pkg_lists/pkglist.py')
-rwxr-xr-x | pkg_lists/pkglist.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg_lists/pkglist.py b/pkg_lists/pkglist.py new file mode 100755 index 0000000..9777401 --- /dev/null +++ b/pkg_lists/pkglist.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# $Id: pkglist.py,v 1.1 2005/11/24 23:45:54 ramereth Exp $ + +import portage + +allpkgs=portage.db["/"]["porttree"].dbapi.cp_all() +bestpkgs={} +mycount=0 + +for x in allpkgs: + if x not in bestpkgs.keys(): + y=portage.db["/"]["porttree"].dbapi.xmatch("bestmatch-visible", x) + bestpkgs[x]=y + if y=="": + continue + xs=portage.pkgsplit(bestpkgs[x]) + print xs[0].split("/")[1], + print xs[1], + print bestpkgs[x] + mycount+=1 |