From owner-cvs-all Tue Oct 9 13:30:10 2001 Delivered-To: cvs-all@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id DBE8A37B40A; Tue, 9 Oct 2001 13:30:01 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id A1BE981D01; Tue, 9 Oct 2001 15:30:01 -0500 (CDT) Date: Tue, 9 Oct 2001 15:30:01 -0500 From: Alfred Perlstein To: Akinori MUSHA Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/sysutils/portupgrade Makefile distinfo Message-ID: <20011009153001.Z59854@elvis.mu.org> References: <200110092023.f99KNlI60557@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200110092023.f99KNlI60557@freefall.freebsd.org>; from knu@FreeBSD.org on Tue, Oct 09, 2001 at 01:23:47PM -0700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Akinori MUSHA [011009 15:24] wrote: > knu 2001/10/09 13:23:47 PDT > > Modified files: > sysutils/portupgrade Makefile distinfo > Log: > Update to 20011010.1, with a couple of fixes. > > pkgdb: > Fix a type error and unbreak date-based pkg glob. > [Reported by: Ollivier Robert ] > > portupgrade: > Silence pkg_info when it does not find a package. > [Submitted by: Jimmy Olgeni ] > > Revision Changes Path > 1.84 +2 -2 ports/sysutils/portupgrade/Makefile > 1.75 +1 -1 ports/sysutils/portupgrade/distinfo > Both of these programs throw a really bad error message when the package database is corrupt or broken, something like: "Can't instance IO" Perhaps the opening of the databases could be wrapped in a try block that explains that the reason it may have failed was because of a corrupt /var/db/pkg/pkg.db file and the user should back it and and try to regenerate it. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message