[aur-general] Check redundant dependencies

Clément DEMOULINS cdemoulins at gmail.com
Tue May 27 04:53:13 EDT 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PKGBUILD
Type: application/octet-stream
Size: 693 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/aur-general/attachments/20080527/a288de35/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gajim.png
Type: image/png
Size: 687386 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/aur-general/attachments/20080527/a288de35/attachment.png>


More information about the aur-general mailing list