From 381e549895152e8282f840c012d9f056d56a5ea2 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 14 Jan 2009 21:58:49 +0000 Subject: Add patch 0001 to fix Xapian overflow. --- diff --git a/debian/patches/0001_fix_xapian_overflow.patch b/debian/patches/0001_fix_xapian_overflow.patch new file mode 100644 index 0000000..f5b1f90 --- /dev/null +++ b/debian/patches/0001_fix_xapian_overflow.patch @@ -0,0 +1,13 @@ +diff --git a/secore/searchconnection.py b/secore/searchconnection.py +index 79fa509..4f77941 100644 +--- a/secore/searchconnection.py ++++ b/secore/searchconnection.py +@@ -607,7 +607,7 @@ class SearchConnection(object): + # Repeat the search until we don't get a DatabaseModifiedError + while True: + try: +- mset = enq.get_mset(startrank, maxitems, checkatleast) ++ mset = enq.get_mset(startrank, maxitems, min(0x7FFFFFFF, checkatleast)) + break + except _xapian.DatabaseModifiedError, e: + self.reopen() diff --git a/debian/patches/series b/debian/patches/series index 64e4de0..759e3e5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +0001_fix_xapian_overflow.patch 1002_avoid_try-except-finally.patch 1003_avoid_with_statement.patch 1004_avoid_queue_hints.patch -- cgit v0.9.1