Version in base suite: 2.1.1-1 Base version: python-xapian-haystack_2.1.1-1 Target version: python-xapian-haystack_2.1.1-1+deb12u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/p/python-xapian-haystack/python-xapian-haystack_2.1.1-1.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/p/python-xapian-haystack/python-xapian-haystack_2.1.1-1+deb12u1.dsc changelog | 9 +++++++ patches/0002-Remove-dependency-on-six.patch | 32 ++++++++++++++++++++++++++++ patches/series | 1 3 files changed, 42 insertions(+) diff -Nru python-xapian-haystack-2.1.1/debian/changelog python-xapian-haystack-2.1.1/debian/changelog --- python-xapian-haystack-2.1.1/debian/changelog 2021-10-19 20:10:20.000000000 +0000 +++ python-xapian-haystack-2.1.1/debian/changelog 2024-03-19 22:35:19.000000000 +0000 @@ -1,3 +1,12 @@ +python-xapian-haystack (2.1.1-1+deb12u1) bookworm; urgency=medium + + * Non-maintainer upload, to stable. + * Remove dependency on the django.utils.six module, which no longer exists, + causing the package to be completely broken. Patch by Ole Peder Brandtzæg, + based on reducing a patch from upstream. (Closes: #1066136) + + -- Steinar H. Gunderson Tue, 19 Mar 2024 23:35:19 +0100 + python-xapian-haystack (2.1.1-1) unstable; urgency=low [ Debian Janitor ] diff -Nru python-xapian-haystack-2.1.1/debian/patches/0002-Remove-dependency-on-six.patch python-xapian-haystack-2.1.1/debian/patches/0002-Remove-dependency-on-six.patch --- python-xapian-haystack-2.1.1/debian/patches/0002-Remove-dependency-on-six.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-xapian-haystack-2.1.1/debian/patches/0002-Remove-dependency-on-six.patch 2024-03-19 22:35:19.000000000 +0000 @@ -0,0 +1,32 @@ +Index: python-xapian-haystack-2.1.1/xapian_backend.py +=================================================================== +--- python-xapian-haystack-2.1.1.orig/xapian_backend.py ++++ python-xapian-haystack-2.1.1/xapian_backend.py +@@ -7,7 +7,6 @@ import re + import shutil + import sys + +-from django.utils import six + from django.conf import settings + from django.core.exceptions import ImproperlyConfigured + from django.utils.encoding import force_text +@@ -346,7 +345,7 @@ class XapianSearchBackend(BaseSearchBack + def _get_ngram_lengths(value): + values = value.split() + for item in values: +- for ngram_length in six.moves.range(NGRAM_MIN_LENGTH, NGRAM_MAX_LENGTH + 1): ++ for ngram_length in range(NGRAM_MIN_LENGTH, NGRAM_MAX_LENGTH + 1): + yield item, ngram_length + + for obj in iterable: +@@ -356,8 +355,8 @@ class XapianSearchBackend(BaseSearchBack + def ngram_terms(value): + for item, length in _get_ngram_lengths(value): + item_length = len(item) +- for start in six.moves.range(0, item_length - length + 1): +- for size in six.moves.range(length, length + 1): ++ for start in range(0, item_length - length + 1): ++ for size in range(length, length + 1): + end = start + size + if end > item_length: + continue diff -Nru python-xapian-haystack-2.1.1/debian/patches/series python-xapian-haystack-2.1.1/debian/patches/series --- python-xapian-haystack-2.1.1/debian/patches/series 2021-10-19 20:10:20.000000000 +0000 +++ python-xapian-haystack-2.1.1/debian/patches/series 2024-03-19 22:35:19.000000000 +0000 @@ -1 +1,2 @@ 0001-Use-io.open-to-read-UTF-8-encoded-README-file.patch +0002-Remove-dependency-on-six.patch