Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
manage string in release name
git-svn-id: http://svn.osgeo.org/qgis/trunk@13643 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Jun 4, 2010
1 parent c43e11e commit dbb8bbe
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions python/plugins/GdalTools/tools/GdalTools_utils.py
Expand Up @@ -622,13 +622,9 @@ def string2vers(string):
if len(nums) > 1:
vers[1] = int(nums[1])
if len(nums) > 2:
pos = nums[2].find( 'dev' )
if pos != -1:
n = nums[2][:pos]
vers[2] = int(n)
else:
vers[2] = int(nums[2])

n = QString(nums[2]).remove( QRegExp( "[^0-9].*$" ) )
if not n.isEmpty():
vers[2] = int(n)

return (vers[0], vers[1], vers[2])

Expand Down

0 comments on commit dbb8bbe

Please sign in to comment.