--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apt-xapian-index: handle exception while db is being updated
- From: Ritesh Raj Sarraf <rrs@debian.org>
- Date: Tue, 09 Sep 2014 18:46:53 +0530
- Message-id: <20140909131653.722.83841.reportbug@learner.researchut.com>
Package: apt-xapian-index
Version: 0.47
Severity: wishlist
I installed apt-xapian-index and it did tell me that it is updating its
database in the backgroud.
This is the error I got when running axi-cache
18:35:59 rrs@learner:/proc/28571$ axi-cache search jabber
Traceback (most recent call last):
File "/usr/bin/axi-cache", line 846, in <module>
sys.exit(ui.perform())
File "/usr/bin/axi-cache", line 841, in perform
return f(self.args)
File "/usr/bin/axi-cache", line 530, in do_search
self.db = DB()
File "/usr/bin/axi-cache", line 120, in __init__
self.db = xapian.Database(axi.XAPIANINDEX)
File "/usr/lib/python2.7/dist-packages/xapian/__init__.py", line 3667, in __init__
_xapian.Database_swiginit(self,_xapian.new_Database(*args))
xapian.DatabaseOpeningError: Couldn't stat '/var/lib/apt-xapian-index/index' (No such file or directory)
Perhaps you should handle this exception. Otherwise there is no way for
the user of knowing that there's an update process in the background.
You may trap this exception, and then go check if there is really an
update process, and display a message accordingly ???
On my box, a minute later, it did give me a proper result. But on low
power boxes, say RPi, the actual time consumption will be a lot higher.
18:37:06 rrs@learner:/proc/28571$ axi-cache search bash
108 results found.
Results 1-20:
100% bash-builtins - Bash loadable builtins - headers & examples
99% bash-completion - programmable completion for the bash shell
99% bash - GNU Bourne Again SHell
99% python-calabash - Bash-style pipelining syntax for Python generators
97% switchsh - bind-mount bash as /bin/sh
95% screenfetch - Bash Screenshot Information Tool
95% libbash - a tool that enables bash dynamic-like shared libraries
94% bash-static - GNU Bourne Again SHell (static version)
93% ruby-session - persistent connections with external programs like bash (via pipes)
93% python-bash8-doc - bash script style guide checker - doc
93% python-bashate-doc - bash script style guide checker - doc
92% bash-doc - Documentation and examples for the GNU Bourne Again SHell
91% python3-bash8 - bash script style guide checker - Python 3.x
91% python3-bashate - bash script style guide checker - Python 3.x
91% python-bash8 - bash script style guide checker - Python 2.x
91% python-bashate - bash script style guide checker - Python 2.x
90% python-optcomplete - provide bash-completion for Python programs
89% python-argcomplete - bash tab completion for argparse
88% command-not-found - Suggest installation of packages in interactive bash sessions
87% biabam - bash attachment mailer
Did you mean: base ?
More terms: devstack beginnings statusline powerline humble script qtile
More tags: interface::shell suite::gnu uitoolkit::ncurses devel::lang:c mail::user-agent implemented-in::c implemented-in::python
`axi-cache more' will give more results
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt-xapian-index depends on:
ii python 2.7.8-1
ii python-apt 0.9.3.9
ii python-debian 0.1.22
ii python-xapian 1.2.18-1
pn python:any <none>
apt-xapian-index recommends no packages.
Versions of packages apt-xapian-index suggests:
pn app-install-data <none>
ii python-xdg 0.25-4
-- no debconf information
--- End Message ---