[Debconf-devel] Bug#616059: Bug#616059: /usr/sbin/dpkg-reconfigure: should use dpkg-query --control-path to find path for templates/config files
Raphael Hertzog
hertzog at debian.org
Wed Mar 2 16:06:06 UTC 2011
On Wed, 02 Mar 2011, Joey Hess wrote:
> Colin Watson wrote:
> > Joey, does this patch look OK to you?
> >
> > I don't know if it's worth falling back to older methods if dpkg-query
> > --control-path is unavailable. I normally try to be pretty conservative
> > about what debconf uses, but (a) dpkg 1.15.4 was in squeeze and (b) this
> > is only in dpkg-reconfigure, not in anything that would be run during
> > upgrades.
>
> Looks ok to me. I don't know what should be done about handing
> package:arch though.
Accepting it transparently should be enough from a quick look.
dpkg --status will accept it as parameter.
However you should not use your $pkg directly to set
DPKG_MAINTSCRIPT_PACKAGE / DPKG_MAINTSCRIPT_ARCH (when you fix this bug).
Instead you can read it out of dpkg --status like you did
for the Status and Version fields.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)
More information about the Debconf-devel
mailing list