Package: apt-xapian-index
Version: 0.45
Severity: normal

For example, consider this "screenshot":

,----
| naesten@hydrogen:~% axi-cache search use::Traceback (most recent call
| last):
|   File "/usr/bin/axi-cache", line 28, in <module>
|     from optparse import OptionParser
| KeyboardInterrupt
|                     axi-cache search use::
| Completing `args' or `terms/query'
`----

This was taken after typing "axi-cache search use::", TAB, and ^C in
zsh; the cursor ended up after "use::" on the line after
"KeyboardInterrupt". (The precise text will of course vary depending on
the zsh completion settings, and on when in the execution SIGINT is
received. Usually the traceback is much longer)

I would have expected to see just:

,----
| naesten@hydrogen:~% axi-cache search use::
| Completing `args' or `terms/query'
`----

(With the cursor remaining just after "use::".)


Given that it seems to be impossible to make dead certain that Python
does not print such a traceback on SIGINT (without embedding it in a C
program, anyway), it seems like the thing to do is to change the zsh
completion code for axi-cache so that it redirects axi-cache's stderr to
/dev/null.

It would probably also be wise to make the completion code run the same
copy of axi-cache that the command being completed would invoke; as it
stands, if I try to complete "./axi-cache use::" from the source
directory and then type SIGINT, I still get a traceback including
/usr/bin/axi-cache!


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt-xapian-index depends on:
ii  python                        2.7.2-7    interactive high-level object-orie
ii  python-apt                    0.8.0      Python interface to libapt-pkg
ii  python-debian                 0.1.21     Python modules to work with Debian
ii  python-support                1.0.14     automated rebuilding support for P
ii  python-xapian                 1.2.7-1    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.17-0.1   Python library to access freedeskt

-- no debconf information

-- debsums errors found:
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 11003 
package 'jhcore':
 missing architecture
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 39360 
package 'lambdamoo':
 missing architecture

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to