summaryrefslogtreecommitdiff
path: root/test.py
blob: ba741d246737825ca394488166069bf5c46242d6 (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
28
29
from __future__ import with_statement

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
log.c?id=849ecd961df9454d6f849eac34e6f501395c4f01&follow=1'>Update git to v1.8.2.1John Keeping4-5/+6 2013-04-07ui-blob: don't segfault when no path is givenJohn Keeping1-1/+1 2013-03-20Convert pager navigation into a unordered listLukas Fleischer3-9/+20 2013-03-20Makefile: remove CGIT-CFLAGS files in clean stageJason A. Donenfeld1-1/+1 2013-03-20ui-summary.c: Move urls variable into print_urls()Lukas Fleischer1-6/+14 2013-03-20Fix colspan valuesLukas Fleischer3-14/+28 2013-03-20html: check return value of writeJason A. Donenfeld1-2/+3 2013-03-20ui-shared: squelch compiler warning.Jason A. Donenfeld1-0/+1 2013-03-20cgit.mk: Use SHELL_PATH_SQ to run gen-version.shJohn Keeping1-1/+1 2013-03-20cgit.mk: don't rebuild everything if CGIT_VERSION changesJohn Keeping1-1/+8 2013-03-20ui-patch: use cgit_version not CGIT_VERSIONJohn Keeping1-1/+1 2013-03-20Makefile: re-use Git's Makefile where possibleJohn Keeping3-119/+80