From owner-freebsd-questions Tue Oct 8 10:10:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B25437B401 for ; Tue, 8 Oct 2002 10:10:09 -0700 (PDT) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id C49C343E6A for ; Tue, 8 Oct 2002 10:10:08 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP id MUA74016; Tue, 08 Oct 2002 10:10:07 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 9C4D75D04; Tue, 8 Oct 2002 10:10:03 -0700 (PDT) To: Tom Carrick Cc: Adam Weinberger , freebsd-questions@FreeBSD.ORG Subject: Re: portupgrade problem In-reply-to: Your message of "08 Oct 2002 12:56:36 BST." <1034078196.370.16.camel@knyghtmare.com> Date: Tue, 08 Oct 2002 10:10:03 -0700 From: "Kevin Oberman" Message-Id: <20021008171003.9C4D75D04@ptavv.es.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Tom Carrick > Date: 08 Oct 2002 12:56:36 +0100 > Sender: owner-freebsd-questions@FreeBSD.ORG > > That worked great, thanks. Can you give me some explanation on why (and > how) this happens, and in what way it messes up? When portupgrade is editing/modifying the ports database (not the package database), it is subject to leaving the DB in a corrupt condition if it is interrupted during the update. This includes a crash. portsdb -u is "smart" in that it check timestamps to see if a port has changed since the db was last updated and, after corruption of this sort, it thinks that the DB is current and does nothing. -f says to force a update of the DB regardless of the timestamp, so that fixes this sort of thing. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message