From 8943ced09b453bcd438c8abd9c71312f024f523a Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Tue, 30 Oct 2007 02:09:51 +0000
Subject: [PATCH] Revisions should be compared as int.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17277 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Tool/TemplateTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/Tool/TemplateTool.py b/product/ERP5/Tool/TemplateTool.py
index bd6316e477..6236d39ae2 100644
--- a/product/ERP5/Tool/TemplateTool.py
+++ b/product/ERP5/Tool/TemplateTool.py
@@ -791,7 +791,7 @@ class TemplateTool (BaseTool):
               elif diff_version == 0 \
                    and previous_property_dict['revision'] \
                    and property_dict['revision'] \
-                   and previous_property_dict['revision'] < property_dict['revision']:
+                   and int(previous_property_dict['revision']) < int(property_dict['revision']):
                       template_item_dict[title] = (repository, property_dict)
         # Next, select only updated business templates.
         for repository, property_dict in template_item_dict.values():
-- 
2.30.9