On 02.01.2018 20:07, Frank J. wrote:
> 
>> What does the script think it is?
> 
>  echo '/home/frank/.config/darktable/library.db' | sha1sum
>  echo /home/frank/.config/darktable/library.db   | sha1sum
>  echo ~/.config/darktable/library.db             | sha1sum
> always shows: 019eade4c9ecb5a11211d45dea396847536920f7
> 
> 
>> What is your cache dir?
> 
> My cache is in
> /home/frank/.cache/darktable/mipmaps-b9e5e02c0ac7c88b4d553341db86f147ed95ccd8.d


Your ./purge_from_cache.sh is outdated. In my (pre-2.4.0) source, in
darktable/tools/purge_from_cache.sh the cache_dir is calculated like this:

library="${HOME}/.config/darktable/library.db"
cache_base="${HOME}/.cache/darktable"
..
cache_dir="${cache_base}/mipmaps-$(echo -n "${library}" | sha1sum | cut
--delimiter=" " --fields=1).d"

And if I set

library="/home/frank/.config/darktable/library.db"

then

echo -n "${library}" | sha1sum | cut --delimiter=" " --fields=1
b9e5e02c0ac7c88b4d553341db86f147ed95ccd8

which corresponds to

> My cache is in
> /home/frank/.cache/darktable/mipmaps-
> b9e5e02c0ac7c88b4d553341db86f147ed95ccd8.d

So, please delete your outdated copy of all the helper scripts you may
have accumulated in your home directory and, if you really need them,
replace them with copies from the tarball corresponding to the darktable
version you have installed.


With kind regards

Stefan Peter


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
(See https://en.wikipedia.org/wiki/Posting_style for details)
____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]

Reply via email to