From e481016a84ed7b5881db8f15abaabc27ed6c974f Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Tue, 19 Jul 2011 15:55:40 -0300
Subject: [PATCH] Use filter to get only relevant results.

---
 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 5db017dff4..4b2cc7f320 100644
--- a/product/ERP5/Tool/TemplateTool.py
+++ b/product/ERP5/Tool/TemplateTool.py
@@ -1242,7 +1242,7 @@ class TemplateTool (BaseTool):
       # TemplateTool_installRepositoryBusinessTemplateList while still being
       # possible to reuse by external callers
       opreation_log = []
-      template_dict = self._getBusinessTemplateUrlDict()
+      template_dict = self._getBusinessTemplateUrlDict(only_newer)
       for template_name in template_list:
         if template_name in template_dict:
           installed_bt = self.getInstalledBusinessTemplate(template_name)
-- 
2.30.9