Op vr 25 jan. 2019 om 11:24 schreef Robie Basak <robie.ba...@ubuntu.com>: > > On Fri, Jan 25, 2019 at 11:04:28AM +0100, Olaf van der Spek wrote: > > Not sure where p.ci comes from.. > > > > Setting up mariadb-common (1:10.3.12-2) ... > > (Reading database ... 85393 files and directories currently installed.) > > Preparing to unpack .../0-mariadb-server-10.3_1%3a10.3.12-2_amd64.deb ... > > /var/lib/mysql: found previous version 10.3 > > dpkg: warning: version 'p.ci' has bad syntax: version number does not start > > with digit > > Unpacking mariadb-server-10.3 (1:10.3.12-2) over (1:10.3.12-1) ... > > A call to "dpkg --compare-versions" perhaps?
Bingo: https://salsa.debian.org/mariadb-team/mariadb-10.3/blob/master/debian/mariadb-server-10.3.preinst # Automatically set version to ease maintenance of this file. # Assume the filename is /path/to/mariadb-server-##.#.preinst # Pick version string based on location. Python equivalent would be x[-12:-8]. VERSION=${0: -12:4} This look hacky. Could this assumption be false? $ ls -l debian-*.flag -rw-r--r-- 1 root root 0 Jan 25 10:09 debian-10.3.flag -- Olaf