Re: dpkg-statoverride sucks
On Thu, Feb 01, 2001 at 11:52:31AM -0800, Joey Hess wrote:
> Drew Parsons wrote:
> > Anyway, I tried also using dpkg-statoverride in postinst to set the mode for
> > /usr/lib/games/mirrormagic, not just /var/lib... and do get the same problem:
> >
> > warning: --update given but /usr/lib/games/mirrormagic does not exist
> >
> > So does that mean this part of the problem is a bug in dpkg-statoverride?
>
> Clearly, yes:
>
> if ($doupdate) {
> if (not -f $file) {
> print STDERR "warning: --update given but $file does not exist\n";
>
>
> If statoverride is meant to work on directories, that test is clearly wrong.
>
I submitted a bug on it. I guess it should just be (not -e $file) since $file
is supposed to be any filesystem object.
Drew
--
PGP public key available at http://dparsons.webjump.com/drewskey.txt
Fingerprint: A110 EAE1 D7D2 8076 5FE0 EC0A B6CE 7041 6412 4E4A
Reply to: