Processed: Re: Bug#461626: debsums: /var/games/bastet.scores checked, shouldn't be

2008-01-24 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 reassign 461626 bastet
Bug#461626: debsums: /var/games/bastet.scores checked, shouldn't be
Bug reassigned from package `debsums' to `bastet'.

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


___
Pkg-games-devel mailing list
Pkg-games-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel


Re: Bug#461626: debsums: /var/games/bastet.scores checked, shouldn't be

2008-01-24 Thread Brendan O'Dea
reassign 461626 bastet
thanks

On Sun, Jan 20, 2008 at 12:26:53AM +, phil wrote:
debsums detects that /var/games/bastet.scores has changed.

I would have thought that all files in /var/ would be skipped.  Certainly 
scores
files should be!

Is this a debsums or bastet issue?

A problem with bastet:  The package contains an empty file as
/var/games/bastet.scores, and an md5sum for that file.

This is not just a problem for debsums, having the scores file as part
of the package means that on upgrade the scores will be replaced by an
empty file from the new version.

The normal way to handle this is to not include the file in the package,
but to create conditionally in the postinst and remove it in the postrm
on purge.  Something like:

  postinst:

scores=/var/games/bastet.scores
[ -e $scores ] || { touch $scores; chgrp games $scores; chmod 664 $scores; }

  postrm:

if [ $1 = purge ]; then rm -f /var/games/bastet.scores; fi

--bod

___
Pkg-games-devel mailing list
Pkg-games-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel