Package: debsecan
Tags: 545363 - moreinfo
thanks

Jörg Sommer hat am Sun 06. Sep, 14:27 (+0200) geschrieben:
> Package: debsecan
> Version: 0.4.12
> Severity: normal
> 
> Hi,
> 
> after a fresh install of debsecan the debconf doesn't contain my
> selection for debsecan/suite. I'm using dpkg-preconfigure that might
> cause this bug pops up.

I had a look at this bug and here's what I found out:

The order the package scripts are called and what dpkg does is this:

dpkg --unpack installs the file in /etc/default/debsecan
dpkg --configure runs debsecan.config and debsecan.postinst
debsecan.config reads the content of /etc/default/debsecan and sets these
  values as default values, then it asks the user

With dpkg-preconfigure you get this:

dpkg-preconfigure runs debsecan.config
debsecan.config asks the user
dpkg --unpack installs the file in /etc/default/debsecan
dpkg --configure runs debsecan.config and debsecan.postinst
debsecan.config reads the content of /etc/default/debsecan and sets these
  values as default values, but doesn't ask the user, because the
  questions are all marked as seen

The second run of debsecan.config destroys the settings the user made in
the first call. The config script should not reset the value of the
answer, if the user already answered the question. But I'm not sure how
this works with dpkg-reconfigure and a manual change in /e/d/debsecan.

And I saw the function normalize_suite in config doesn't allow lenny,
i.e. you can't select lenny, it always becomes reset to GENERIC.

Regards, Jörg.
-- 
Erfahrung heißt gar nichts. Man kann seine Sache auch 35 Jahre schlecht
machen.
                                            (Kurt Tucholsky)

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP

Reply via email to