[debian-mysql] Bug#920415: Bug#920415: dpkg: warning: version 'p.ci' has bad syntax: version number does not start with digit
Olaf van der Spek
olafvdspek at gmail.com
Fri Jan 25 11:12:55 GMT 2019
Op vr 25 jan. 2019 om 11:24 schreef Robie Basak <robie.basak at 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
More information about the pkg-mysql-maint
mailing list