Package: catfish
Version: 4.16.3-1
Severity: wishlist

catfish has a hard-coded path to mlocate's default database path:

    https://codesearch.debian.net/search?q=pkg%3Acatfish+mlocate&literal=1

    
https://sources.debian.org/src/catfish/4.16.3-1/catfish_lib/catfishconfig.py/#L32

mlocate and plocate support $LOCATE_PATH being a colon-separated list of paths 
to locate databases:

    
https://manpages.debian.org/bullseye-backports/plocate/plocate.1.en.html#ENVIRONMENT

I use this to run updatedb directly on the NAS, which is MUCH more efficient.
The commands are approximately this:

    # on the file server, generate ~twb/.locatedb
    sudo -H -u twb nice nocache updatedb --require-visibility=no --output 
.locatedb --database-root ~twb

    # on the desktop, where ~twb is NFS and / is Debian Live
    export LOCATE_PATH=~twb/.locatedb
    locate foo
    catfish

I think with Debian 11's catfish, it will ALWAYS pop up this alert:

    The search database is more than 7 days old.  Update now?  [Update] [X]

I'm not sure EXACTLY what the correct semantics here should be, but
the current behaviour is definitely annoying me! :-)




-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-0.bpo.2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to