Bug#649277: lintian: warn against versions like 0.7.1.rc1-1 or 0.3.0+beta4-1

2011-11-19 Thread Jakub Wilk

Package: lintian
Version: 2.5.3
Severity: wishlist

Versions like 0.7.1.rc1-1 or 0.3.0+beta4-1 won't sort correctly once 
a final version of software is release. They should be rather 
0.7.1~rc1-1 and 0.3.0~beta4-1.


We could use this regex:

[^~a-z](rc|alpha|beta|pre(view|release)?)([^a-z])

On the other hand, if a package with such version is already in the 
archive, there's not much that can be done, so maybe we should limit 
ourselves to versions ending in -1?


--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#649277: lintian: warn against versions like 0.7.1.rc1-1 or 0.3.0+beta4-1

2011-11-19 Thread Stefano Rivera
Hi Jakub (2011.11.19_16:17:55_+0200)
 On the other hand, if a package with such version is already in the
 archive, there's not much that can be done, so maybe we should limit
 ourselves to versions ending in -1?

Thanks for filing this.

If you are going to limit it to -1, please catch -0ubuntu1 too.

Oh, and:
 [^~a-z](rc|alpha|beta|pre(view|release)?)([^a-z])
 jtaylor I'd also add .dev

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 465 6908 C: +27 72 419 8559  UCT: x3127



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org