English version

Yesterday I worked a little bit on how to retrieve information for a given package from pkgdb. I found out that python-fedora contains a xmlrpc client which can call pkgdb.

Combining this client with Koji's client I could retrieve easily the owner of the package on each branch and the lastest version of the package in updates and updates-testing repository.

Below are some examples.

The script



French version

Hier, je me suis amusé à récupérer des informations sur un package par pkgdb. J'ai trouvé que python-fedora contient un client xmlrpc qui peut interroger pkgdb.

En combinant ce client avec Koji, on peut récupérer facilement le mainteneur d'un paquet ainsi que la dernière version disponible dans les dépôts updates et updates-testing.

Ci-dessous, quelques exemples.

Le script

The examples / Les exemples:

$ ./pkgdb.py guake
Fedora Package Database -- guake
devel	pingou
	 last build: 2011-02-09 by ausil for guake-0.4.2-3.fc15 in Updates
f15	pingou
	 last build: 2011-02-09 by ausil for guake-0.4.2-3.fc15 in Updates
f14	pingou
	 last build: 2010-08-24 by pingou for guake-0.4.2-2.fc14 in Updates
F-13	pingou
	 last build: 2010-08-24 by pingou for guake-0.4.2-2.fc13 in Updates
$ ./pkgdb.py kernel
Fedora Package Database -- kernel
devel	kernel-maint
	 last build: 2011-05-09 by kyle for kernel-2.6.39-0.rc6.git6.0.fc16 in Updates
f15	kernel-maint
	 last build: 2011-05-06 by airlied for kernel-2.6.38.5-24.fc15 in Updates
f14	kernel-maint
	 last build: 2011-05-03 by cebbert for kernel-2.6.35.13-91.fc14 in Updates
F-13	kernel-maint
	 last build: 2011-02-17 by kyle for kernel-2.6.34.8-68.fc13 in Updates
	 last build: 2011-05-03 by cebbert for kernel-2.6.34.9-69.fc13 in Updates-testing
OLPC-2	johnp
	 last build: 2007-11-01 by cebbert for kernel-2.6.23.1-21.fc7 in Updates