On 27/05/2008, at 4:53 PM, Clément DEMOULINS wrote:

Hi,

I write a script in python that check dependencies for a PKGBUILD or a
program. The script check if the dependencies are already include by
another dependency.

Exemple for the package gajim :

$ yaourt -Si gajim | grep depends
Depends On : gtkspell sqlite3 dnsutils pygtk libxss python>=2.5
$ archdep.py -p gajim
python is already include by pygtk

$ archdep.py --help
Usage: archdep.py [options]

Options:
 -h, --help     show this help message and exit
 -g, --draw     Draw the dependence's tree
 -p, --program  Calcul optional dependences for a program and not a
PKGBUILD
 -r, --request  Question the remote database (pacman -Si), default is
local (pacman -Qi)
 -d, --debug    Add debug messages

This work fine for programs use python (or any script language)
contrary to namcap.
I attach a PKGBUILD for test this script and a png of tree of
dependenies of gajim create with option --draw.

Clément DEMOULINS
<PKGBUILD><gajim.png>

Does namcap not do this? If not it might be a good idea to merge the two scripts.

Reply via email to