diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 23:57:35 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-08-14 23:57:35 +0200 |
commit | e4c2a57cdbb9082ce1cab7cbbfad122b16c56ff1 (patch) | |
tree | b8b21b600c086aa9295af7317202476034930592 /test.py | |
parent | c916c961f34f47fdb25d5384370b0aed7e90ea49 (diff) | |
parent | 8d2b915b7705ba7d831d48ce9623ca8fe46f6f38 (diff) | |
download | portato-e4c2a57cdbb9082ce1cab7cbbfad122b16c56ff1.tar.gz portato-e4c2a57cdbb9082ce1cab7cbbfad122b16c56ff1.tar.bz2 portato-e4c2a57cdbb9082ce1cab7cbbfad122b16c56ff1.zip |
Merged in eix-branch
Diffstat (limited to '')
-rw-r--r-- | test.py | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +from portato import _sub_start +_sub_start() + +from portato.eix import EixReader +from portato.backend import system + +def run(): + with EixReader("/var/cache/eix") as eix: + for c in eix.categories: + c.name + for p in c.packages: + p.name + +def run2(): + for i in system.find_packages(with_version = False): + cat, pkg = i.split("/") + +def run3(): + inst = system.find_packages(pkgSet = system.SET_INSTALLED, with_version = False) + + for i in range(200): + "bla" in inst + +def run4(): + inst = set(system.find_packages(pkgSet = system.SET_INSTALLED, with_version = False)) + for i in range(200): + "bla" in inst |