pkg_check.py

Michel Talon talon at lpthe.jussieu.fr
Fri Mar 16 14:46:07 UTC 2007


Hello,

this is to announce version 1.0 of pkg_check.py, a python program to
check the contents of /var/db/pkg, and the last piece of the puzzle in
the programs trying to emulate portupgrade in a different way. 
It is available at:
http://www.lpthe.jussieu.fr/~talon/pkg_check.py
always under BSD licence.

Its aim is basically to do the same thing as pkgdb -F. Explicitely it
reads the +CONTENTS files and the MOVED file, discovers the dependencies
and checks accordingly the +REGISTERED_BY. 
Optionally, it can update the origins in +CONTENTS to the most recent
valid version, and fix the +REGISTERED_BY. Still another option is to
decompose the set of packages in connected components (with respect to
dependency) and produce graphviz files for these components.

In practice there is always an enormous component which is unsuitable
for plotting, but on small installations it can be nice. Anyways the
program gives a detailed report in CheckLog, and runs in short time, a
few seconds the first time, around a second when the files are in cache.


-- 

Michel TALON



More information about the freebsd-ports mailing list