Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Apr 2009 19:51:33 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-questions@FreeBSD.ORG, richard.delaurell@gmail.com, Polytropon <freebsd@edvax.de>
Subject:   Re: py24-gobject won't deinstall
Message-ID:  <200904031751.n33HpXVv089824@lurza.secnetix.de>
In-Reply-To: <4324dbec0904021800s691e95e9y56e7a7def2566d28@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <module>
 >     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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904031751.n33HpXVv089824>