You are not logged in.

#1 2004-09-05 22:05:50

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Installed Package Integrity Checker

I finally got around to learning python...great language btw, and I decided to try a small project that took me a half a day, but probably would have taken some guru 5 minutes flat, as a test program. What this does is parse /var/lib/pacman/local/*/files and check to make sure that everything it finds listed still exists on your system, it outputs anything that it didnt manage to read, and the package that owns it.
Please try it out and send comments/tips/criticisms/etc..

http://neotuli.dyndns.org/arch/pkginteg.py

Thanks


The suggestion box only accepts patches.

Offline

#2 2004-09-05 22:55:04

jbNet
Member
From: Klamath Falls, OR, USA
Registered: 2004-08-12
Posts: 34

Re: Installed Package Integrity Checker

Seems to work here, could be useful

Offline

#3 2004-09-06 00:35:25

aCoder
Member
From: Medina, OH
Registered: 2004-03-07
Posts: 359
Website

Re: Installed Package Integrity Checker

mmmm... Python...


If you develop an ear for sounds that are musical it is like developing an ego. You begin to refuse sounds that are not musical and that way cut yourself off from a good deal of experience.
  - John Cage

Offline

#4 2004-09-06 02:30:55

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Installed Package Integrity Checker

Looks alright to me... you probably didn't have to use os.walk though.  An os.listdir would have been just as good (you already know that there will be a files file in each directory).

Alternately, you could look at the pacman module that's included with namcap.  It can load package information from places like /var/lib/pacman/local.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB