tis 2013-08-20 klockan 10:40 +0200 skrev Andreas Beckmann:
> Hi,
> 
> during a test with piuparts I noticed your package does not include
> md5sums for all the files it ships:
> 
>   gridsite: FILE WITHOUT MD5SUM /var/lib/gridsite/.gacl
>   gridsite: FILE WITHOUT MD5SUM /var/lib/gridsite/gridsitefoot.txt
>   gridsite: FILE WITHOUT MD5SUM /var/lib/gridsite/gridsitehead.txt
> 
> If these files are intended to be modified, they should be managed by
> maintainer scripts instead of being shipped.
> Currently they will be overwritten on every upgrade.

These files are properly listed as configuration files in the dpkg
metadata of the package:

$ cat /var/lib/dpkg/info/gridsite.conffiles 
/var/lib/gridsite/.gacl
/var/lib/gridsite/gridsitefoot.txt
/var/lib/gridsite/gridsitehead.txt
/etc/apache2/sites-available/gridsite.conf
/etc/apache2/mods-available/zgridsite.load
/etc/apache2/mods-available/zgridsite.conf

They are handled by the normal configure file mechanism in dpkg, and the
md5sums are tracked in the package status, the same way it is for other
configuration files.

$ dpkg --status gridsite
Package: gridsite
Status: install ok installed
 [ ... ]
Conffiles:
 /var/lib/gridsite/.gacl 88f4b45b6569fac47298439f2c911db5
 /var/lib/gridsite/gridsitefoot.txt 45ae35fb1a24a05bfbea36c3500ed5ba
 /var/lib/gridsite/gridsitehead.txt 80aaad7a677d7bd24c8e7e7594befa06
 /etc/apache2/sites-available/gridsite.conf a7a43c456129084c6fb1c538e01ed0ae
 /etc/apache2/mods-available/zgridsite.load 8841babc5836a6b0264cffd6b4be1582
 /etc/apache2/mods-available/zgridsite.conf 500abc73c2856aa23af9bf3a33f45caf
 [ ... ]

On package upgrade the files are managed correctly by dpkg. There is no
need for any additional managing using maintainer scripts. If the file
in the new package differs from the file in the old package the file is
replaced if the installed file has not been changed and otherwise not.
Which is the expected behaviour.

I don't see where the bug is here.

        Mattias

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to