[arch-general] Integrity Check

Xavier shiningxc at gmail.com
Tue Aug 26 03:21:54 EDT 2008


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/check_archlinux.py;hb=HEAD
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_archlinux.tar.gz
Type: application/x-gzip
Size: 9534 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/arch-general/attachments/20080826/87ed82c6/attachment.bin>


More information about the arch-general mailing list