Author: esr
Date: Tue Oct 14 15:02:45 2008
New Revision: 30159
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30159&view=rev
Log:
Fix bug introduced by loose matching.
Modified:
trunk/data/tools/wesnoth/wmltools.py
Modified: trunk/data/tools/wesnoth/wmltools.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmltools.py?rev=30159&r1=30158&r2=30159&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmltools.py (original)
+++ trunk/data/tools/wesnoth/wmltools.py Tue Oct 14 15:02:45 2008
@@ -14,7 +14,7 @@
upwards.reverse()
for pathpart in upwards:
# Loose match because people have things like git trees.
- if pathpart.find("wesnoth"):
+ if os.path.basename(pathpart).find("wesnoth") > -1:
break
else:
os.chdir("..")
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits