You are not logged in.

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

Lazy Developer
From: San Francisco, CA
Registered: 2004-07-06
Posts: 1,201

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..


The suggestion box only accepts patches.


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

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

Re: Installed Package Integrity Checker

Seems to work here, could be useful


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

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

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


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

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

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


Board footer

Powered by FluxBB