changeset 4601:b93cb7a29a13

packages.do_ensureversion: compare int release numbers
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 21 Feb 2009 23:19:29 +0100
parents deda6cd6c6d1
children 0671f405c7d0
files MoinMoin/packages.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/packages.py	Sat Feb 21 19:49:34 2009 +0100
+++ b/MoinMoin/packages.py	Sat Feb 21 23:19:29 2009 +0100
@@ -203,6 +203,7 @@
         version_int = [int(x) for x in version.split(".")]
         # use a regex here to get only the numbers of the release string (e.g. ignore betaX)
         release = re.compile('\d+').findall(release)[0:3]
+        release = [int(x) for x in release]
         if version_int > release:
             if lines > 0:
                 self.goto = lines