alle Pakete eines Repositories ansehen

Thilo Six T.Six at gmx.de
Son Jun 24 09:44:17 BST 2007


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 ;)

-- 
Thilo

key: 0x4A411E09