Package: apt-xapian-index
Version: 0.18
Severity: minor
Tags: patch
When there's work to do, the cron.weekly (ana)cron job sends me an
error message, as follows.
/etc/cron.weekly/apt-xapian-index:
/usr/share/apt-xapian-index/plugins/debtags.py:92: DeprecationWarning: Use
tags_of_package instead
for tag in self.db.tagsOfPackage(pkg.name):
Even a Python ignoramus like me can fix that one: it's
s/tagsOfPackage/tags_of_package/ (on lines 92 _and_ 105).
Trivial patch attached which Works For Me.
(This is presumably the kid brother of the much nastier python-apt
issues already reported, but unlike them it still seems to be
present in the version 0.19 in Sid, as far as I can tell.)
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.6.29.custom
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt-xapian-index depends on:
ii python 2.5.4-2 An interactive high-level object-o
ii python-apt 0.7.8 Python interface to libapt-pkg
ii python-debian 0.1.13 Python modules to work with Debian
ii python-xapian 1.0.10-1 Xapian search engine interface for
apt-xapian-index recommends no packages.
apt-xapian-index suggests no packages.
-- no debconf information
--
JBR
Ankh kak! (Ancient Egyptian blessing)
--- debtags.py.old 2009-05-01 23:24:51.000000000 +0100
+++ debtags.py.new 2009-05-01 23:00:19.000000000 +0100
@@ -89,7 +89,7 @@
document is the document to update
pkg is the python-apt Package object for this package
"""
- for tag in self.db.tagsOfPackage(pkg.name):
+ for tag in self.db.tags_of_package(pkg.name):
document.add_term("XT"+tag)
def indexDeb822(self, document, pkg):
@@ -102,7 +102,7 @@
document is the document to update
pkg is the Deb822 object for this package
"""
- for tag in self.db.tagsOfPackage(pkg["Package"]):
+ for tag in self.db.tags_of_package(pkg["Package"]):
document.add_term("XT"+tag)
def init():