Package: jumpapplet
Version: 15-1
Justification: renders package unusable
Severity: grave
Tags: patch

The jumpapplet file do searching the database only in ~/.autojump_py file, but 
the
autojumps use one from the following (in this order):

1, ~/.local/share/autojump/autojump_py
2, ~/.autojump_py

If the database is created on the first position, the jumpapplet do not find any
data and is unusable. Attached patch solves this problem, by searching database 
on
both positions.

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

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

Versions of packages jumpapplet depends on:
ii  autojump                      15-1       shell extension to jump to frequen
ii  python                        2.6.6-14   interactive high-level object-orie
ii  python-gtk2                   2.24.0-2   Python bindings for the GTK+ widge

jumpapplet recommends no packages.

jumpapplet suggests no packages.

-- debconf-show failed

-- debsums errors found:
debsums: changed file /usr/bin/jumpapplet (from jumpapplet package)

my patch is applied :-)

regards
-- 
s pozdravom

Slavko
http://slavino.sk
--- projekty/jumpapplet	2011-07-14 19:57:44.000000000 +0200
+++ /usr/bin/jumpapplet	2011-07-14 20:08:20.000000000 +0200
@@ -57,8 +57,11 @@
     return wrapper
 
 #do the work
-def load_paths(filename="~/.autojump_py",maxpath=10):
-    dic_file=os.path.expanduser(filename)
+def load_paths(filename=[ "~/.local/share/autojump/autojump_py", "~/.autojump_py"], maxpath=10):
+    for fileitem in filename:
+        dic_file=os.path.expanduser(fileitem)
+        if os.path.exists(dic_file):
+            break
 
     try:
         aj_file=open(dic_file)

Attachment: signature.asc
Description: PGP signature

Reply via email to