Package: debhelper
Version: 7.4.15
Severity: wishlist

Hi, 

while updating one of my packages (which again dropped a conffile), I had to
modify its preinst, according to http://wiki.debian.org/DpkgConffileHandling .

This works but is IMHO suboptimal: the code referenced on the wiki has to be
hand copied in each and every package that has to move or delete conffiles.

This could maybe be done through a dh_oldconffiles (for removing) and a
dh_moveconffiles (for moving). Those helpers would read ${package}.oldconffiles
in debian/ containing e.g.:

1.0.1-1
 etc/oldConfFile.conf
 etc/anotherOldConfFile
1.0.2-1
 etc/thisPackageDeletesManyConfFiles
${version in which it was deleted}
 ${conffile}

and

1.0.1-1
 etc/oldConfFile.conf etc/newConfFile.conf
 etc/anotherOldConfFile etc/anotherNewConfFile
1.0.2-1
 etc/foo etc/bar
${version in which it was moved}
 ${oldconffile} ${newconffile}

This would make the handling of those conffiles way much cleaner and robust (the
code would be in debhelper only and no more copied all over the place).

Thanks for readingĀ !

Best regards, 

OdyX

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (750, 'unstable'), (700, 'testing-proposed-updates'), (700, 
'testing'), (90, 'experimental'), (50, 'testing-proposed-updates'), (50, 
'experimental'), (50, 'unstable'), (50, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debhelper depends on:
ii  binutils                      2.20.1-2   The GNU assembler, linker and bina
ii  dpkg-dev                      1.15.5.6   Debian package development tools
ii  file                          5.04-1     Determines file type using "magic"
ii  html2text                     1.3.2a-14  advanced HTML to text converter
ii  man-db                        2.5.7-2    on-line manual pager
ii  perl                          5.10.1-11  Larry Wall's Practical Extraction 
ii  perl-base                     5.10.1-11  minimal Perl system
ii  po-debconf                    1.0.16     tool for managing templates file t

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make                       0.52       tool that converts source archives

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to