Date: Wed, 26 Mar 2008 07:08:38 -0700 From: Frank Mayhar <frank@exit.com> To: Pav Lucistnik <pav@freebsd.org> Cc: soralx@cydem.org, Michel Talon <talon@lpthe.jussieu.fr>, freebsd-ports@freebsd.org Subject: Re: ports system woes Message-ID: <1206540518.45634.14.camel@jill.exit.com> In-Reply-To: <20080326135806.M17639@FreeBSD.org> References: <20080326131800.GA75243@lpthe.jussieu.fr> <20080326135806.M17639@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2008-03-26 at 14:59 +0100, Pav Lucistnik wrote: > On Wed, 26 Mar 2008 14:18:00 +0100, Michel Talon wrote > > > In fact last year i wrote a python script which reads all the > > /var/db/pkg/+CONTENTS files, and fixes all the +REQUIRED_BY files, > > assuming they are corrupted. Moreover it follows the MOVED file. > > So you basically reimplemented pkgdb -F in python? No. I'm not sure what he did implement, but it's not "pkgdb -F". > > As far as i remember this program > > runs in a few *seconds* certainly not minutes like it is said here > > Mind that the original poster is using a very low-spec notebook with next to > none RAM. That having been said, O(n^2) algorithms are generally not a good idea. > > solution is to use sqlite and not some half-assed solution like a > > Berkeley database, > > Solution is to use tools that are available in our base system. SQLite is not. Indeed. -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/ http://www.zazzle.com/fmayhar*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1206540518.45634.14.camel>