summaryrefslogtreecommitdiff
path: root/test.py
blob: 5cf8621fe5494422f64134f51b487f0c4c63f8ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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