Debian Policy says that the "Debian revision" follows the *last* minus
sign, not the first. So, you think your Debian revisions are
-0ubuntu1-0 and -0ubuntu1-0, when in reality they're both -0.
As such, you're comparing upstream parts of: 1.3.1+16-0ubuntu1 and
1.3.1-0ubuntu1, without breaking on the dash, and it turns out those
sort in an order you didn't expect. A relevant shorter test case is:
(base)adconrad@nosferatu:~$ dpkg --compare-versions 1.2.3+4 gt 1.2.3-4
(base)adconrad@nosferatu:~$ echo $?
0
(base)adconrad@nosferatu:~$ dpkg --compare-versions 1.2.3+4-0 gt 1.2.3-4-0
(base)adconrad@nosferatu:~$ echo $?
1
Basically, + sorts lower than -, when it's not a special separator
between upstream and Debian revisions. This isn't a bug, just a poor
understanding of policy.
** Changed in: dpkg (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1616953
Title:
dpkg --compare-versions comparison incorrect for some package versions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1616953/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs