[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: scores file - how to fix?



Remco Blaakmeer wrote:
> > postrm (on purge only): rm -f $SCORE; (delete the directory tree $SCORE was in)
> > 
> > You have to delete the directory tree because dpkg has already tried and
> > failed to remove it by this point, and will not try again.
> 
> I'm not a dpkg guru, but I'd think if you remove the scores file in the
> prerm, dpkg will try to remove the directory _after_ you have removed the
> scores file. Or am I all wrong?

You cannot remove the scores file in the prerm, becuase the prerm is run
during upgrades, and so you'd trash a score file. You only want to remove
the score file on purge, and the only script that can tell is the package 
is being purged, is the postrm.

-- 
see shy jo


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: