From owner-freebsd-questions@FreeBSD.ORG Fri Apr 3 17:52:00 2009 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB11C1065672 for ; Fri, 3 Apr 2009 17:52:00 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5A1638FC0C for ; Fri, 3 Apr 2009 17:52:00 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n33HpXqb089825; Fri, 3 Apr 2009 19:51:56 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n33HpXVv089824; Fri, 3 Apr 2009 19:51:33 +0200 (CEST) (envelope-from olli) Date: Fri, 3 Apr 2009 19:51:33 +0200 (CEST) Message-Id: <200904031751.n33HpXVv089824@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG, richard.delaurell@gmail.com, Polytropon In-Reply-To: <4324dbec0904021800s691e95e9y56e7a7def2566d28@mail.gmail.com> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 03 Apr 2009 19:51:56 +0200 (CEST) Cc: Subject: Re: py24-gobject won't deinstall X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2009 17:52:01 -0000 Richard DeLaurell wrote: > Oliver Fromme wrote: > > PS: To check the consistency of your package database, > > you can use this small script (requires Python): > > > > http://www.secnetix.de/olli/scripts/pkg_check_dependencies > > > > If you get no output from "pkg_check_dependencies -q", > > then your dependencies are good. > [...] > ++++++++++++++++++++++++++ > #python pkg_check_dependencies -q > > Traceback (most recent call last): > File "pkg_check_dependencies", line 55, in > if line.startswith("@pkgdep") > IndexError: list index out of range > ++++++++++++++++++++++++++ Interesting ... I think that can only happen if you have a corrupt dependency entry somewhere. If that's the case, this shell command will print the file in question: awk '/^@pkgdep/ && NF < 2 {print FILENAME}' /var/db/pkg/*/+CONTENTS It will print the names of files from the package database that contain an empty "@pkgdep" line. This is probably the cause of the "list index out of range" error message. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Being really good at C++ is like being really good at using rocks to sharpen sticks." -- Thant Tessman