alle Pakete eines Repositories ansehen

Simon Jolle urandomdev at gmail.com
Son Jun 24 11:15:27 BST 2007


On 6/24/07, Thilo Six <T.Six at gmx.de> wrote:
> Sebastian Heinlein wrote the following on 24.06.2007 10:35
>
> <snip>
>
> > #!/usr/bin/env python
> > import apt
> > cache = apt.Cache()
> > for pkg in cache.keys():
> >     for origin in cache[pkg].candidateOrigin:
> >         if origin.__dict__["component"] == "main" and \
> >            origin.__dict__["archive"] == "feisty-commercial":
> >             print cache[pkg].name
> >             break
>
>
> coole sache das. danke ;)

Ich kann mich nur anschliessen. Besten Dank.
Ich hoffe, dass diese Funktionaliät auch als Command Line Option geben
wird; nicht jeder hat genügend Kenntnisse um ein API Script zu
schreiben.

-- 
XMPP: sjolle at swissjabber.org