[Python-modules-commits] r14766 - in packages/python-whoosh/trunk/debian (3 files)

aelmahmoudy-guest at users.alioth.debian.org aelmahmoudy-guest at users.alioth.debian.org
Thu Oct 28 08:37:12 UTC 2010


    Date: Thursday, October 28, 2010 @ 08:37:04
  Author: aelmahmoudy-guest
Revision: 14766

Added patch (simplify.diff) to make test_simplify pass.

Added:
  packages/python-whoosh/trunk/debian/patches/simplify.diff
Modified:
  packages/python-whoosh/trunk/debian/changelog
  packages/python-whoosh/trunk/debian/patches/series

Modified: packages/python-whoosh/trunk/debian/changelog
===================================================================
--- packages/python-whoosh/trunk/debian/changelog	2010-10-28 07:46:20 UTC (rev 14765)
+++ packages/python-whoosh/trunk/debian/changelog	2010-10-28 08:37:04 UTC (rev 14766)
@@ -2,8 +2,9 @@
 
   * New upstream release.
   * Refreshed shm_check.diff patch.
+  * Added patch (simplify.diff) to make test_simplify pass.
 
- -- أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>  Fri, 22 Oct 2010 14:49:37 +0200
+ -- أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>  Thu, 28 Oct 2010 10:36:37 +0200
 
 python-whoosh (1.1.0-1) experimental; urgency=low
 

Modified: packages/python-whoosh/trunk/debian/patches/series
===================================================================
--- packages/python-whoosh/trunk/debian/patches/series	2010-10-28 07:46:20 UTC (rev 14765)
+++ packages/python-whoosh/trunk/debian/patches/series	2010-10-28 08:37:04 UTC (rev 14766)
@@ -1 +1,2 @@
 shm_check.diff
+simplify.diff

Added: packages/python-whoosh/trunk/debian/patches/simplify.diff
===================================================================
--- packages/python-whoosh/trunk/debian/patches/simplify.diff	                        (rev 0)
+++ packages/python-whoosh/trunk/debian/patches/simplify.diff	2010-10-28 08:37:04 UTC (rev 14766)
@@ -0,0 +1,15 @@
+Description: Patch simplify function to make test_simplify pass
+  The change was taken from older version of Whoosh (1.1.0)
+Forwarded: http://bitbucket.org/mchaput/whoosh/issue/58/test_simplify-fails
+Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at sabily.org>
+--- a/src/whoosh/query.py
++++ b/src/whoosh/query.py
+@@ -394,7 +394,7 @@
+ 
+     def simplify(self, ixreader):
+         existing = [Term(self.fieldname, word, boost=self.boost)
+-                    for word in set(self._words(ixreader))]
++                    for word in self._words(ixreader)]
+         if len(existing) == 1:
+             return existing[0]
+         elif existing:




More information about the Python-modules-commits mailing list