Revision: 48546
Author:   kim
Date:     2009-03-18 23:33:05 +0000 (Wed, 18 Mar 2009)

Log Message:
-----------

* bugfix: two ':' or "." in a row caused the parser to choke

Modified Paths:
--------------
    trunk/wikiation/installer/installers.py

Modified: trunk/wikiation/installer/installers.py
===================================================================
--- trunk/wikiation/installer/installers.py     2009-03-18 23:28:35 UTC (rev 
48545)
+++ trunk/wikiation/installer/installers.py     2009-03-18 23:33:05 UTC (rev 
48546)
@@ -252,7 +252,12 @@
        if ":" in path:
                # installed.extension: in foo
                #|-----whence--------|-inpath-|
-               whence, inpath=path.split(':')
+
+               try:
+                       whence, inpath=path.split(':')
+               except ValueError:
+                       raise Parse_Exception("You're doing something odd with 
':'. I don't understand.")
+
        elif "." in path:
                #installed.extension
                whence=path
@@ -265,7 +270,10 @@
                if "." in whence:
                        # installed.extension    : ...
                        #|---ai----|-system--|
-                       ai,system=whence.split('.')
+                       try:
+                               ai,system=whence.split('.')
+                       except ValueError:
+                               raise Parse_Exception("You're doing something 
odd with '.'. I don't understand.")
                else:
                        # ?    : ...
                        single_case=whence



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to