Your message dated Sun, 3 Nov 2019 01:00:57 +0100
with message-id <[email protected]>
and subject line Re: Bug#933962: dpkg --force-confold, does not say anywhere in 
it's cmdline output why it's overriding --force-confold
has caused the Debian Bug report #933962,
regarding dpkg --force-confold, does not say anywhere in it's cmdline output 
why it's overriding --force-confold
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
933962: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933962
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.19.6

Hello,
If I specify --force-confold option to dpkg -i while upgrading /
reinstalling. Then I get the following output:

$ sudo DEBIAN_FRONTEND=noninteractive dpkg -D200 --force-confold -i teleport*deb
(Reading database ... 265903 files and directories currently installed.)
Preparing to unpack
teleport_4.0.0-rc.4-42-8_amd64_43a3d__expires-15.46pm-mon-05-aug-2019.deb
...
D000200: process_archive conffile '/etc/teleport.yaml' in package
teleport:amd64 - conff ?
D000200: pkg_conffiles_mark_old '/etc/teleport.yaml' namenode
'/etc/teleport.yaml' flags 5
Unpacking teleport (4.0.0-rc.4-42-8) over (4.0.0-rc.4-42-7) ...
D000200: conffderef in='/etc/teleport.yaml' current working='/etc/teleport.yaml'
D000200: tarobject conffile extracted
Setting up teleport (4.0.0-rc.4-42-8) ...
D000200: conffderef in='/etc/teleport.yaml' current working='/etc/teleport.yaml'
Installing new version of config file /etc/teleport.yaml ...
id@asrock-z170-ocf:~$


However there is no explanation whatsoever, being reported back to the
user, even with logging level -D200, as to why the behaviour of the
--force-confold flag is being overriden. As to why a newer config file
is being installed.

This was pretty infuriating for me today whilst testing the
correctness of my pkg. To make sure that I wasn't doing something else
wrong myself!

Wheras if the user had edited the config file, then under that other
arbitrary circumstance. Well then dpkg DOES indeed report why it's
decided to either keep or overwrite the config file. With a proper
explanation of what it's detected and what it's doing in this case it
says:


id@asrock-z170-ocf:~$ sudo nano /etc/teleport.yaml

id@asrock-z170-ocf:~$ sudo DEBIAN_FRONTEND=noninteractive dpkg -D200
--force-confold -i teleport*deb
(Reading database ... 265903 files and directories currently installed.)
Preparing to unpack
teleport_4.0.0-rc.4-42-8_amd64_065e1__expires-15.57pm-mon-05-aug-2019.deb
...
D000200: process_archive conffile '/etc/teleport.yaml' in package
teleport:amd64 - conff ?
D000200: pkg_conffiles_mark_old '/etc/teleport.yaml' namenode
'/etc/teleport.yaml' flags 5
Unpacking teleport (4.0.0-rc.4-42-8) over (4.0.0-rc.4-42-8) ...
D000200: conffderef in='/etc/teleport.yaml' current working='/etc/teleport.yaml'
D000200: tarobject conffile extracted
Setting up teleport (4.0.0-rc.4-42-8) ...
D000200: conffderef in='/etc/teleport.yaml' current working='/etc/teleport.yaml'

Configuration file '/etc/teleport.yaml'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
 ==> Using current old file as you requested.

This (to me) is an inconsistent behaviour and should be rectified in
the first instance to add more message or logging lines in a similar
fashion to the 2nd case (except to say the opposite, why it's
overwriting the config file despite the --force-confold flag being
specified!)

So I suggest that some additional output string(s), be added, to say:

D000200: conffderef in='/etc/teleport.yaml' current working='/etc/teleport.yaml'
Configuration file '/etc/teleport.yaml'
 ==> Not modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
 ==> Overriding --force-confold flag, since no user modification(s) to preserve.
 Installing new version of config file /etc/teleport.yaml ...

====
end of suggestions


Hope the reasons for this request are clear. Please do as per your liking.
Kind Regards / Hava a good day


Dreamcat4
[email protected]

--- End Message ---
--- Begin Message ---
Hi!

On Tue, 2019-08-06 at 13:34:45 +0200, Guillem Jover wrote:
> On Mon, 2019-08-05 at 15:53:08 +0100, Dreamcat4 wrote:
> > So I suggest that some additional output string(s), be added, to say:
> > 
> > D000200: conffderef in='/etc/teleport.yaml' current 
> > working='/etc/teleport.yaml'
> > Configuration file '/etc/teleport.yaml'
> >  ==> Not modified (by you or by a script) since installation.
> >  ==> Package distributor has shipped an updated version.
> >  ==> Overriding --force-confold flag, since no user modification(s) to 
> > preserve.
> >  Installing new version of config file /etc/teleport.yaml ...
> 
> As stated above, there's no overriding going on here. And doing this
> seems to me would be stating something which is wrong, and would also
> be really verbose, for a condition that would make the force flags way
> more confusing than they already are.
> 
> I'm thus not seeing the problem here, and I think I'll be closing this
> report in a bit.

Doing this now.

Thanks,
Guillem

--- End Message ---

Reply via email to