]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/bin/packagepython.py
patch::: 1.5.10.jcn3
[lilypond.git] / stepmake / bin / packagepython.py
index 1950f569354970c830d58cdd5a510d99aa6a9317..9fb12ff07431757bc10dba277aa5a61d0c4227a2 100755 (executable)
@@ -1,5 +1,8 @@
 #!/usr/bin/python
 
+
+#ugh. junkme.
+
 # packagepython.py --  implement general StepMake-wide python stuff
 # 
 # source file of the GNU LilyPond music typesetter
@@ -121,10 +124,9 @@ def version_tuple_to_str(tup):
 
 def version_str_to_tuple(str):
        t = string.split(str, '.')
-       try:
-               mypatch = t[3]
-       except IndexError:
-               mypatch = ''
+       mypatch = ''
+       if len (t) >= 4:
+               mypatch = string.join (t[3:], '.')
        return (string.atoi(t[0]), string.atoi(t[1]), string.atoi(t[2]), mypatch)
 
 def version_compare (tupl, tupr):