mail[Wesnoth-commits] r20249 - /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:45:
Author: sapient
Date: Mon Sep 10 01:45:19 2007
New Revision: 20249

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20249&view=rev
Log:
found a way to prevent radius upconversion without changing the default

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=20249&r1=20248&r2=20249&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Mon Sep 10 01:45:19 2007
@@ -681,7 +681,7 @@
         if nullattack:
             lines = lines[:i] + lines[i+2:]
     # Upconvert old radius usage
-    if "1.3.7" in versions:
+    if "1.3.7" in versions and "older" not in versions:
         radius_pos = wmlfind("radius=", WmlIterator(lines))
         while radius_pos is not None:
             scopeIter = radius_pos.iterScope()
@@ -972,7 +972,7 @@
     except getopt.GetoptError:
         help()
         sys.exit(1)
-    oldversion = 'trunk'
+    oldversion = 'older'
     dryrun = False
     future = False
     verbose = 0
@@ -1016,7 +1016,7 @@
     else:
         print >>sys.stderr, "wmllint: unrecognized version."
         sys.exit(1)
-    if not dryrun and not clean and not revert:
+    if not dryrun and not clean and not revert and len(versions) > 1:
         explain = "Upgrades for:"
         for i in range(len(versions)-1):
             explain += " %s -> %s," % (versions[i],  versions[i+1])




Related Messages


Powered by MHonArc, Updated Mon Sep 10 04:00:26 2007