[Bug 1616953] [NEW] dpkg --compare-versions comparison incorrect for some package versions

Christopher Townsend christopher.townsend at canonical.com
Thu Aug 25 14:51:54 UTC 2016


Public bug reported:

I have a situation where dpkg --compare-versions is reporting the wrong
status for certain package versions.

A simple example:

$ dpkg --compare-versions 1.3.1+16-0ubuntu1-0 gt 1.3.1-0ubuntu1-0
$ echo $?
1

It is the second '-' in the second version that is triggering this.  The
first version should be greater than the second.

I spoke w/ Ken VanDine about this and he agreed that this looks like a
big.

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1616953

Title:
  dpkg --compare-versions comparison incorrect for some package versions

Status in dpkg package in Ubuntu:
  New

Bug description:
  I have a situation where dpkg --compare-versions is reporting the
  wrong status for certain package versions.

  A simple example:

  $ dpkg --compare-versions 1.3.1+16-0ubuntu1-0 gt 1.3.1-0ubuntu1-0
  $ echo $?
  1

  It is the second '-' in the second version that is triggering this.
  The first version should be greater than the second.

  I spoke w/ Ken VanDine about this and he agreed that this looks like a
  big.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1616953/+subscriptions



More information about the foundations-bugs mailing list