mail[Wesnoth-commits] r20248 - /trunk/data/tools/wmllint


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by patrick_X99 on September 10, 2007 - 01:25:
Author: sapient
Date: Mon Sep 10 01:24:29 2007
New Revision: 20248

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20248&view=rev
Log:
change the default oldversion to trunk; prevent a crash on files with 0 lines.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=20248&r1=20247&r2=20248&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Mon Sep 10 01:24:29 2007
@@ -744,6 +744,8 @@
             has_map_content = len(lines) > 1
     except OSError:
         has_map_content = False
+    except IndexError:
+        has_map_content = False
     return has_map_content
 
 class maptransform_error:
@@ -970,7 +972,7 @@
     except getopt.GetoptError:
         help()
         sys.exit(1)
-    oldversion = 'older'
+    oldversion = 'trunk'
     dryrun = False
     future = False
     verbose = 0




Related Messages


Powered by MHonArc, Updated Mon Sep 10 02:00:36 2007