[Gelistirici] [Uludag-commits] r15889 - in branches/pisi-db/pisi: . cli db

Faik Uygur faik at pardus.org.tr
26 Eki 2007 Cum 23:44:08 EEST


On Friday 26 October 2007 23:36:07 S.Çağlar Onur wrote:
> 26 Eki 2007 Cum tarihinde, uludag-commits at pardus.org.tr şunları yazmıştı:
> > Author: faik
> > Date: Fri Oct 26 21:50:19 2007
> > New Revision: 15889
> >
> > Modified:
> >    branches/pisi-db/pisi/api.py
> >    branches/pisi-db/pisi/cli/search.py
> >    branches/pisi-db/pisi/db/itembyrepo.py
> >    branches/pisi-db/pisi/db/packagedb.py
> > Log:
> > A relavitely faster search from the current one
>
> Kafam karıştı sanırım benim;
>
> In [1]: import pisi
>
> In [2]: len(pisi.api.search_package("kdebase"))
> Out[2]: 1171

def search_package(terms, lang=None, repo=None):
    """
    Return a list of packages that contains all the given terms either in its 
name, summary or
    description -> list_of_strings
    @param terms: a list of terms used to search package -> list_of_strings

pisi.api.search_package(["kdebase"])
pisi.api.search_package(["kdebase", "hede", "hodo"])

- Faik



Gelistirici mesaj listesiyle ilgili daha fazla bilgi