[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#761614: /usr/bin/linux-version: sorts -trunk as newer than -1 version



On Sun, 2014-09-14 at 23:51 -0500, Vagrant Cascadian wrote:
> Package: linux-base
> Version: 3.5
> Severity: normal
> File: /usr/bin/linux-version
> 
> It seems like the -trunk versions, typically from experimental, are
> sorted higher than the -1 version, which is often after being uploaded
> to unstable, and often newer than the -trunk versions...
> 
>   $ linux-version sort 3.16-trunk-armmp 3.16-rc6-armmp 3.16-1-armmp 3.16-2-armmp
>   3.16-rc6-armmp
>   3.16-1-armmp
>   3.16-2-armmp
>   3.16-trunk-armmp
> 
> Seems like "trunk" should be between the "rc" versions and numbered
> versions... unless I'm misunderstanding something.

Yes.  There are unit tests that check that

3.16-trunk < 3.16-1
3.16-1 > 3.16-trunk

However, the behaviour changes when you add a suffix on both sides.

Ben.

-- 
Ben Hutchings
Make three consecutive correct guesses and you will be considered an expert.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: