Package: mlocate
Version: 1.1.9-1

I noticed a strange error upgrading mlocate from 0.26-5 to 1.1.9-1:

,----
| Preparing to unpack .../mlocate_1.1.9-1_all.deb ...
| dpkg-query: package 'mlocate' is not installed
| Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
| Unpacking mlocate (1.1.9-1) over (0.26-5) ...
`----

And the obsolete conffile /etc/cron.daily/mlocate was not removed as
intended.  Since I could not make anything out of the error message, I
asked on the #debian-dpkg IRC channel and received this explanation
(guillem is the dpkg maintainer, zwenna is me):

,----
| <guillem> zwenna: ok so I guess the dpkg-query call is coming from
|         dpkg-maintscript-helper
| <guillem> hmm perhaps wrong arch-qualification as the package seems to have
|         switched from arch any to all?
| <guillem> that would look like the problem yes
| <guillem> zwenna: so I think what happens is that: rm_conffile in the new
|         package preinst does not specify the package name so it gets
|         automatically inferred to be mlocate:all which does not match the
|         arch:any instance
| <guillem> zwenna: the rm_conffile call seems would need to pass explicitly a
|         non-arch-qualified package name
`----

So it seems you have to specify the package name in
debian/mlocate.maintscript to rectify the problem.


-- System Information:
Debian Release: 11.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.60-nouveau (SMP w/2 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to