Update of /cvsroot/gtkpod/libgpod/m4
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv21858/m4
Modified Files:
python.m4
Log Message:
allow the use of nicer version strings in AM_CHECK_PYMOD
Index: python.m4
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/m4/python.m4,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- python.m4 12 Feb 2007 08:29:36 -0000 1.4
+++ python.m4 27 Feb 2007 21:34:14 -0000 1.5
@@ -47,10 +47,13 @@
import sys, string, $1
curverstr = $3
# use method from AM_PYTHON_CHECK_VERSION
-minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
+minver = map(int, string.split('$2', '.'))
+length = len[(minver)]
+minver += [[0, 0, 0]]
minverhex = 0
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
-curver = map(int, string.split(curverstr, '.')) + [[0, 0, 0]]
+curver = map(int, string.split(curverstr, '.')[[:length]])
+curver += [[0, 0, 0]]
curverhex = 0
for i in xrange(0, 4): curverhex = (curverhex << 8) + curver[[i]]
if (curverhex >= minverhex):
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2