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

Re: use and abuse of debconf



Joey Hess wrote:
  >It has recently come to my attention that several developers are using
  >debconf as an excuse to write a quick hack rather than doing things
  >right. In particular I am talking about several packages that use
  >debconf to prompt the user for information, then write the information
  >to a file in /etc, and when upgraded or reconfigured, clobber any
  >manual changes to the file (and no, I'm not just talking about lilo).
 ...
  >And this as its postinst:
  >
  >#!/bin/sh -e
  >. /usr/share/debconf/confmodule
  >db_get foo/question
  >echo "# DO NOT modify this file; it is automatically generated." > /etc/foo
 
While I support your general case, the use of this particular example does
not help it.  Presumably this file (besides containing the above warning
line) is not marked as a conffile, so the maintainer should have the right
to modify it.  Of course, if it is a conffile, the warning is inappropriate.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "For I know that my redeemer liveth, and that he shall 
      stand at the latter day upon the earth"             
                                       Job 19:25 




Reply to: