浏览代码

wxGUI welcome screen: show revision number only for dev versions

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@59852 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
ca448adb9d
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      gui/wxpython/gis_set.py

+ 5 - 2
gui/wxpython/gis_set.py

@@ -11,7 +11,7 @@ Classes:
  - gis_set::GListBox
  - gis_set::StartUp
 
-(C) 2006-2013 by the GRASS Development Team
+(C) 2006-2014 by the GRASS Development Team
 
 This program is free software under the GNU General Public License
 (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -99,7 +99,10 @@ class GRASSStartup(wx.Frame):
         versionFile.close()
         try:
             grassVersion, grassRevision = versionLine.split(' ', 1)
-            grassRevisionStr = ' (%s)' % grassRevision
+            if grassVersion.endswith('svn'):
+                grassRevisionStr = ' (%s)' % grassRevision
+            else:
+                grassRevisionStr = ''
         except ValueError:
             grassVersion = versionLine
             grassRevisionStr = ''