Bug#699647: proftpd-mod-geoip: /usr/lib/proftpd/mod_geoip.so missing after upgrade from sid

Guillem Jover guillem at debian.org
Sun Jan 26 13:02:30 UTC 2014


Hi!

On Sun, 2014-01-26 at 13:06:47 +0100, Andreas Beckmann wrote:
> what are your deprecation plans for dpkg-query --control-path?
> 
> This is an actual use-case that requires --control-path in wheezy and
> jessie. Or is there a "better" way to achieve this with dpkg?

> Old postrm is broken and will play havoc after the new package was
> unpacked. Therefore we have to delete it in the new preinst.

Ideally there would be a proper solution for this kind of situations,
as of now, yes that's the “best option”. See also:

  <https://wiki.debian.org/Teams/Dpkg/FAQ#Q:_Can_dpkg_be_told_to_avoid_invoking_a_harmful_prerm_from_an_installed_package_on_upgrade.3F>

> On 2014-01-26 08:01, Salvatore Bonaccorso wrote:
> > On Sun, Jan 26, 2014 at 04:04:38AM +0100, Andreas Beckmann wrote:
> >> +if [ "$1" = "install" ] || [ "$1" = "upgrade" ]
> >> +then
> >> +	if dpkg --compare-versions "$2" lt-nl "0.3-1+deb7u1"
> >> +	then
> >> +		rm -fv $(dpkg-query --control-path proftpd-mod-geoip postrm)
> >> +	fi
> >> +fi
> >> +
> >> +#DEBHELPER#
> > 
> > I noticed in current dpkg-query manpage it says:
> > 
> >        -c, --control-path package-name [control-file]
> >               List paths for control files installed to your system from
> >               package-name. If control-file is specified then only
> >               list the path for that control file if it is present.
> >               Warning: this command is deprecated, please switch to use
> >               --control-list and --control-show instead.
> > 
> > But don't know how to better get to the maintainer script to be
> > removed. --control-list only shows the control files installed by the
> > package.

Indeed, I'll clarify the man page to mention that it's strongly
deprecated in case they can be replaced with the other --control
commands, but that there might be other cases that might still need
it, and that it will not disappear as long as there's no better ways
to accomplish those. Hope that helps.

Thanks,
Guillem



More information about the Pkg-proftpd-maintainers mailing list