From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 16 14:46:07 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B62F16A400; Fri, 16 Mar 2007 14:46:07 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id D0FC813C468; Fri, 16 Mar 2007 14:46:06 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id l2GEiUMv064344 ; Fri, 16 Mar 2007 15:44:41 +0100 (CET) X-Ids: 164 Received: by parthe.lpthe.jussieu.fr (Postfix, from userid 10096) id 613EBBF673; Fri, 16 Mar 2007 15:43:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on parthe.lpthe.jussieu.fr X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id B30E4BE834; Fri, 16 Mar 2007 15:43:31 +0100 (CET) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id 64F52C2; Fri, 16 Mar 2007 15:44:28 +0100 (CET) Date: Fri, 16 Mar 2007 15:44:28 +0100 From: Michel Talon To: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Message-ID: <20070316144428.GA5014@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (shiva.jussieu.fr [134.157.0.164]); Fri, 16 Mar 2007 15:44:41 +0100 (CET) X-Virus-Scanned: ClamAV 0.88.7/2850/Fri Mar 16 12:05:03 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at shiva.jussieu.fr with ID 45FAAD4E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Mailman-Approved-At: Fri, 16 Mar 2007 16:01:47 +0000 Cc: Subject: pkg_check.py X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 14:46:07 -0000 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