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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to