On Tue, Aug 26, 2008 at 2:21 AM, Xavier <shiningxc@gmail.com> wrote:
Hello,
I rewrote stonecrest's python script which generated the Integrity Checks : http://projects.archlinux.org/?p=dbscripts.git;a=blob_plain;f=cron-jobs/chec... last results : http://www.archlinux.org/pipermail/arch-dev-public/2008-August/007655.html
Main changes include : * better and safer parsing of PKGBUILDs (it now relies on a separate bash script which source PKGBUILDs and generate python code, rather than trying to parse bash directly in python) * much better performance (thanks to a small python C extension which allows to call alpm_vercmp natively rather than having to fork the vercmp binary thousands of times) * more accurate dependency and provision handling (having worked on this part of the pacman code for a while probably helped me a bit here)
time ./check_archlinux.sh
=================== = Integrity Check = ===================
Performing integrity checks... ==> checking mismatches ==> checking archs ==> checking dependencies ==> checking makedepends
Missing Dependencies ---------------------- archboot --> 'bcm43xx-fwcutter>=006-2'
Missing Makedepends --------------------- wpa_supplicant --> 'kernel26<2.6.25' xosd --> 'xmms' flac --> 'xmms'
Summary --------- Invalid PKGBUILDs: 0 Mismatching PKGBUILD names: 0 Invalid archs: 0 Missing (make)dependencies: 4
./check_archlinux.sh 6,29s user 0,65s system 96% cpu 7,210 total
Awesome work. I know I didn't respond to your emails just yet, but if you could possibly generate a git patch against the dbscripts repo (on projects.archlinux.org), I would apply it. This looks great. Thanks for the work!