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

Christopher Townsend christopher.townsend at canonical.com
Fri Sep 9 16:11:39 UTC 2016


** Description changed:

  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.
+ bug.

-- 
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
  bug.

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