From c53e569c6f0be0dad069db8bbf0de375524e5fac Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Fri, 16 Dec 2005 01:49:03 +0000
Subject: [PATCH] Skip CVS.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4673 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessTemplate.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index a9516a0b2c..37d2ee4826 100755
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -226,6 +226,8 @@ class BusinessTemplateTarball(BusinessTemplateArchive):
     io = StringIO(data)
     tar = tarfile.TarFile(fileobj=io)
     for info in tar.getmembers():
+      if 'CVS' in info.name.split('/'):
+        continue
       if class_name in info.name:
         if info.isreg():
           file = tar.extractfile(info)
-- 
2.30.9