severity 543199 important
tag 543199 moreinfo
tag 543199 unreproducible
thanks

Hi,

first of all, it's a partial upgrade issue 'only', therefore lowering
the severity.

second, i cannot reproduce it in the default case, where the user has
not modified default/tftpd-hpa by hand.

---snip---
r...@debian:~# ls
tftpd-hpa_5.0-3_i386.deb  tftpd-hpa_5.0-5_i386.deb
r...@sdebian:~# dpkg -P tftpd-hpa
dpkg - warning: ignoring request to remove tftpd-hpa which isn't installed.
r...@debian:~# dpkg -i tftpd-hpa_5.0-3_i386.deb
Selecting previously deselected package tftpd-hpa.
(Reading database ... 53712 files and directories currently installed.)
Unpacking tftpd-hpa (from tftpd-hpa_5.0-3_i386.deb) ...
Setting up tftpd-hpa (5.0-3) ...
Starting HPA's tftpd: in.tftpd.
Processing triggers for man-db ...
r...@debian:~# dpkg -i tftpd-hpa_5.0-5_i386.deb
(Reading database ... 53725 files and directories currently installed.)
Preparing to replace tftpd-hpa 5.0-3 (using tftpd-hpa_5.0-5_i386.deb) ...
Stopping HPA's tftpd: in.tftpd.
Unpacking replacement tftpd-hpa ...
Setting up tftpd-hpa (5.0-5) ...
Installing new version of config file /etc/init.d/tftpd-hpa ...
tftpd user (tftp) already exists, doing nothing.
tftpd-hpa directory (/srv/tftp) already exists, doing nothing.
Starting HPA's tftpd: in.tftpd.Processing triggers for man-db ...
r...@debian:~#
---snap---

the only things that deconf asked here were username and directory when
installing -3, when installing -5 it did behave correctly and not gave
any debconf prompts at all.

> Well yes, this is definitely wrong.

i'm not so sure about that. tftpd-hpa.preinst takes care about the
partial upgrade, except in one case: you have a configuration file that
is not the default one, and also lacks the #DEBCONF# token.

and that is precisely the case where you do not want tftpd-hpa to
overwrite it, no?

> - The /etc/default/tftpd-hpa file on my system is a *conffile*.  Apparently 
> the
>   5.0 package of tftpd-hpa no longer ships this as a conffile, but the package
>   still needs to properly clean up that conffile first before editing it.

i think it does. please elaborate if i'm missing something here.

> - Since this is a conffile, and unmodified on my system, I should not get any
>   prompts about it.  The package should do the right thing on upgrade so that
>   the default is the same on upgrade as on a new install.

see above, it does in the default case.

Regards,
Daniel

-- 
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          [email protected]
Internet:       http://people.panthera-systems.net/~daniel-baumann/



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to