Package: apt-xapian-index
Version: 0.43
Severity: normal
Tags: patch

Hi,

Running axi-cache info produces the following error:

Main data directory: /var/lib/apt-xapian-index
Update timestamp: /var/lib/apt-xapian-index/update-timestamp (last
updated: Thu Jun 16 13:42:23 2011)
Index location: /var/lib/apt-xapian-index/index (pointing to
/var/cache/apt-xapian-index/index.2)
Documentation of index contents: /var/lib/apt-xapian-index/README
Documentation of available prefixes: /var/lib/apt-xapian-index/prefixes
Documentation of available values: /var/lib/apt-xapian-index/values
Plugin directory: /usr/share/apt-xapian-index/plugins
Traceback (most recent call last):
  File "/usr/bin/axi-cache", line 810, in <module>
    sys.exit(ui.perform())
  File "/usr/bin/axi-cache", line 805, in perform
    return f(self.args)
  File "/usr/bin/axi-cache", line 452, in do_info
    path = s.get("path", "(unknown)")
  AttributeError: 'list' object has no attribute 'get'

This is due to plugins/sizes.py. On line 41, there is an unwanted
trailing comma. The attached trivial patch against master fixes this
bug.

Best regards,

        Cédric




-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-xapian-index depends on:
ii  python                        2.6.6-14   interactive high-level object-orie
ii  python-apt                    0.8.0      Python interface to libapt-pkg
ii  python-debian                 0.1.20     Python modules to work with Debian
ii  python-support                1.0.13     automated rebuilding support for P
ii  python-xapian                 1.2.5-2    Xapian search engine interface for

apt-xapian-index recommends no packages.

Versions of packages apt-xapian-index suggests:
pn  app-install-data              <none>     (no description available)
ii  python-xdg                    0.19-3     Python library to access freedeskt

-- no debconf information
diff --git a/plugins/sizes.py b/plugins/sizes.py
index a6ce395..24cdfed 100644
--- a/plugins/sizes.py
+++ b/plugins/sizes.py
@@ -41,7 +41,7 @@ class Sizes:
         else:
             file = "(stdin)"
             ts = 0
-        res["sources"] = [dict(path=file, desc="APT index")],
+        res["sources"] = [dict(path=file, desc="APT index")]
         res["timestamp"] = ts
         return res
 

Attachment: signature.asc
Description: Digital signature

Reply via email to