Bug#531220: nut.conf overwritten during reinstall with not prompting

2009-06-30 Thread Arnaud Quette
2009/6/28 Manolo Díaz 

> El Sun, 28 Jun 2009 21:47:28 +0200
> Arnaud Quette  escribi�:
>
> > Hi Daniel and Manolo,
> >
> > nut.conf is listed as a conffile (automagically by dh_installdeb).
> > but the issue is probably the MODE reprocessing at postinst which
> > fails when it is "source'able" (ie "MODE=..." without spaces). this
> > result in an empty string ("MODE=").
> >
> > can you confirm that you end up with the same result?
> >
> > cheers,
> > Arnaud
>
> Hi,
>
> doing 'dpkg-reconfigure nut' it will change the line 'MODE=standalone'
> to 'MODE=' in the file /etc/nut/nut.conf
>
> But if I previously change 'MODE=standalone' to 'MODE =standalone' or to
> 'MODE = standalone' the space(s) will be removed and nut will start.
> 'MODE= standalone' will fail too.
>
> So yes, I think your guesses are right.
>

Hi Manolo,

thanks for the confirmation. I'll do the fix and an upload soon (being back
from a month off is a hell!).

cheers
Arnaud
-- 
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/


Bug#531220: nut.conf overwritten during reinstall with not prompting

2009-06-28 Thread Manolo Díaz
El Sun, 28 Jun 2009 21:47:28 +0200
Arnaud Quette  escribi�:

> Hi Daniel and Manolo,
> 
> nut.conf is listed as a conffile (automagically by dh_installdeb).
> but the issue is probably the MODE reprocessing at postinst which
> fails when it is "source'able" (ie "MODE=..." without spaces). this
> result in an empty string ("MODE=").
> 
> can you confirm that you end up with the same result?
> 
> cheers,
> Arnaud

Hi,

doing 'dpkg-reconfigure nut' it will change the line 'MODE=standalone'
to 'MODE=' in the file /etc/nut/nut.conf

But if I previously change 'MODE=standalone' to 'MODE =standalone' or to
'MODE = standalone' the space(s) will be removed and nut will start.
'MODE= standalone' will fail too.

So yes, I think your guesses are right.

Regards,
-- 
Manolo Díaz



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



Bug#531220: nut.conf overwritten during reinstall with not prompting

2009-06-28 Thread Arnaud Quette
Hi Daniel and Manolo,

nut.conf is listed as a conffile (automagically by dh_installdeb).
but the issue is probably the MODE reprocessing at postinst which fails when
it is "source'able" (ie "MODE=..." without spaces). this result in an empty
string ("MODE=").

can you confirm that you end up with the same result?

cheers,
Arnaud
-- 
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/


Bug#531220: nut.conf overwritten during reinstall with not prompting

2009-05-30 Thread Daniel Dickinson
Package: nut
Version: 2.4.1-2
Severity: serious
Justification: not sure


nut.conf is a conffile (or should be) and is overwritten during
apt-get --reinstall install nut

and overwriting conffiles without prompting is a violation of policy.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages nut depends on:
ii  adduser  3.110   add and remove users and groups
ii  debconf  1.5.26  Debian configuration management sy
ii  libc62.9-12  GNU C Library: Shared libraries
ii  libupsclient12.4.1-2 Client library for the nut - Netwo
ii  libusb-0.1-4 2:0.1.12-13 userspace USB programming library
ii  libwrap0 7.6.q-16Wietse Venema's TCP wrappers libra
ii  lsb-base 3.2-22  Linux Standard Base 3.2 init scrip
ii  udev 0.141-1 /dev/ and hotplug management daemo

Versions of packages nut recommends:
ii  bash-completion   1:1.0-2programmable completion for the ba

Versions of packages nut suggests:
pn  nut-cgi(no description available)
pn  nut-dev(no description available)
pn  nut-snmp   (no description available)
pn  nut-xml(no description available)

-- debconf information:
  nut/major_upstream_changes:



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