Bug#1404: a2gs contains /etc/papersize as a conffile and prompts too much
Package: a2gs
Version: 1.0-2
/etc/papersize is a file which is shared between several packages and
handled by their post-installation scripts. It should not be included
in the package, and should not be listed as a conffile.
If the postinst finds that it doesn't exist it may wish to create it,
but if the file already exists it should leave it alone. The a2gs
package prompted about it even though I had one already.
chiark:debian-archive> dpkg -I binary/text/a2gs-1.0-2.deb
old debian package, version 0.939000.
size 8869 bytes: control archive= 1663, main archive= 7192.
15 bytes, 1 lines conffiles
375 bytes, 12 lines control
4362 bytes, 136 lines * postinst #!/bin/bash
Package: a2gs
Version: 1.0
Package_Revision: 2
Class: optional
Section: text
Maintainer: Kenneth MacDonald <K.MacDonald@ed.ac.uk>
Description: ASCII to PostScript filter
a2gs formats plain ASCII text into PostScript, suitable
for printing or viewing with ghostscript. Pages can be
rotated to landscape and multiple columns generated.
Optional: gs_x | gs_both | gs_svga
chiark:debian-archive> dpkg -I binary/text/a2gs-1.0-2.deb conffiles
/etc/papersize
chiark:debian-archive> dpkg --contents binary/text/a2gs-1.0-2.deb
drwxr-xr-x root/root 0 Aug 10 15:48 1995 ./
drwxr-xr-x root/root 0 Aug 10 15:48 1995 usr/
drwxr-xr-x root/root 0 Aug 10 15:48 1995 usr/doc/
drwxr-xr-x root/root 0 Aug 10 15:48 1995 usr/doc/copyright/
-rw-r--r-- root/root 920 Aug 10 15:48 1995 usr/doc/copyright/a2gs
drwxr-xr-x root/root 0 Aug 10 15:48 1995 usr/bin/
-rwxr-xr-x root/root 12292 Aug 10 15:48 1995 usr/bin/a2gs
drwxr-xr-x root/root 0 Aug 10 15:48 1995 usr/man/
drwxr-xr-x root/root 0 Aug 10 15:48 1995 usr/man/man1/
-rw-r--r-- root/root 3570 Aug 10 15:48 1995 usr/man/man1/a2gs.1
drwxr-xr-x root/root 0 Aug 10 15:48 1995 usr/man/man5/
-rw-r--r-- root/root 1455 Aug 10 15:48 1995 usr/man/man5/papersize.5
drwxr-xr-x root/root 0 Aug 10 15:48 1995 etc/
-rw-r--r-- root/root 3 Aug 10 15:48 1995 etc/papersize
chiark:debian-archive>
Ian.
Reply to: