#!/usr/bin/python
+
+#ugh. junkme.
+
# packagepython.py -- implement general StepMake-wide python stuff
#
# source file of the GNU LilyPond music typesetter
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):