Subject: Re: CVS commit: src/etc
To: Luke Mewburn <lukem@netbsd.org>
From: Sean Davis <dive@endersgame.net>
List: source-changes
Date: 05/12/2003 23:46:33
On Tue, May 13, 2003 at 02:41:28AM +0000, Luke Mewburn wrote:
> 
> Module Name:	src
> Committed By:	lukem
> Date:		Tue May 13 02:41:28 UTC 2003
> 
> Modified Files:
> 	src/etc: postinstall
> 
> Log Message:
> Ensure that the exit status in do_obsolete() is correctly determined.
> Problem introduced in previous, and noticed by Rob Quinn in private email.

Does this fix the issue where postinstall complains if /var/db/obsolete
exists but is empty?:

eros# /etc/postinstall check
Source directory: /usr/src
Target directory: /
postinstall check:
defaults check:
mtree check:
gid check:
uid check:
periodic check:
rc check:
ssh check:
wscons check:
makedev check:
postfix check:
obsolete check:
eval: cannot open /var/db/obsolete/*: no such file
sendmail check:
postinstall checks passed: postinstall defaults mtree gid uid periodic rc
ssh wscons makedev postfix sendmail
postinstall checks failed: obsolete
To fix, run:
    /etc/postinstall -s /usr/src -d / fix obsolete
eros# /etc/postinstall -s /usr/src -d / fix obsolete
Source directory: /usr/src
Target directory: /
obsolete fix:
eval: cannot open /var/db/obsolete/*: no such file
postinstall fixes passed:
postinstall fixes failed: obsolete

... I've been wondering about that behavior for a while.


-- 
/~\ The ASCII
\ / Ribbon Campaign                   Sean Davis
 X  Against HTML                       aka dive
/ \ Email!