Bug#935497: index out of range
Package: apt-xapian-index
Version: 0.49
update-apt-xapian-index dies with "index out of range":
root@git01:~# dpkg -P apt-xapian-index
(Reading database ... 58218 files and directories currently installed.)
Purging configuration files for apt-xapian-index (0.49) ...
Removing index /var/lib/apt-xapian-index...
root@git01:~# dpkg --get-selections | grep xapian
libxapian30:amd64 install
python-xapian install
root@git01:~# apt install apt-xapian-index
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python-xdg
The following NEW packages will be installed:
apt-xapian-index
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 58.6 kB of archives.
After this operation, 257 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 apt-xapian-index all 0.49 [58.6 kB]
Fetched 58.6 kB in 0s (0 B/s)
[master f112057] saving uncommitted changes in /etc prior to apt run
2 files changed, 31 deletions(-)
delete mode 100755 cron.weekly/apt-xapian-index
Selecting previously unselected package apt-xapian-index.
(Reading database ... 58217 files and directories currently installed.)
Preparing to unpack .../apt-xapian-index_0.49_all.deb ...
Unpacking apt-xapian-index (0.49) ...
Setting up apt-xapian-index (0.49) ...
Processing triggers for man-db (2.7.6.1-2) ...
[master 22ba48d] committing changes in /etc after apt run
2 files changed, 31 insertions(+)
create mode 100755 cron.weekly/apt-xapian-index
root@git01:~# /usr/sbin/update-apt-xapian-index --update --quiet
Traceback (most recent call last):
File "/usr/sbin/update-apt-xapian-index", line 102, in <module>
indexer.incrementalUpdate()
File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 671, in incrementalUpdate
self.updateIndex(dbpath)
File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 652, in updateIndex
db.add_document(self.get_document_from_apt(pkg))
File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 536, in get_document_from_apt
addon.obj.index(document, pkg)
File "/usr/share/apt-xapian-index/plugins/relations.py", line 130, in index
self._index_rel(pfx, val, document)
File "/usr/share/apt-xapian-index/plugins/relations.py", line 114, in _index_rel
doc.add_term(pfx + name.split(None, 1)[0])
IndexError: list index out of range
Regards
Harri
Reply to: