Bug#699647: proftpd-mod-geoip: /usr/lib/proftpd/mod_geoip.so missing after upgrade from sid
Andreas Beckmann
anbe at debian.org
Sun Jan 26 12:06:47 UTC 2014
Hi Guillem,
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.
On 2014-01-26 08:01, Salvatore Bonaccorso wrote:
> Hi Andreas,
>
> 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.
>
> Regards,
> Salvatore
>
More information about the Pkg-proftpd-maintainers
mailing list