Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2001 15:30:01 -0500
From:      Alfred Perlstein <bright@mu.org>
To:        Akinori MUSHA <knu@FreeBSD.org>
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>
In-Reply-To: <200110092023.f99KNlI60557@freefall.freebsd.org>; from knu@FreeBSD.org on Tue, Oct 09, 2001 at 01:23:47PM -0700
References:  <200110092023.f99KNlI60557@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Akinori MUSHA <knu@FreeBSD.org> [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 <roberto@keltia.freenix.fr>]
>   
>   portupgrade:
>     Silence pkg_info when it does not find a package.
>     [Submitted by: Jimmy Olgeni <olgeni@uli.it>]
>   
>   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




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