[Erp5-report] r15886 - /erp5/trunk/products/ERP5/Tool/ContributionTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Aug 29 09:36:10 CEST 2007
Author: nicolas
Date: Wed Aug 29 09:36:09 2007
New Revision: 15886
URL: http://svn.erp5.org?rev=15886&view=rev
Log:
fix equality test (by Aïssam)
Modified:
erp5/trunk/products/ERP5/Tool/ContributionTool.py
Modified: erp5/trunk/products/ERP5/Tool/ContributionTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/ContributionTool.py?rev=15886&r1=15885&r2=15886&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/ContributionTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/ContributionTool.py Wed Aug 29 09:36:09 2007
@@ -672,7 +672,7 @@
# md5 stuff to compare contents
new_content_md5 = md5.md5(data).hexdigest()
content_md5 = content.getContentMd5()
- if content_md5 is new_content_md5:
+ if content_md5 == new_content_md5:
return
content._edit(file=file)# Please make sure that if content is the same
# we do not update it
More information about the Erp5-report
mailing list