Hi, Op 17-11-2020 om 17:44 schreef Andreas Tille:
I admit I have heard the first time about mmcif_pdbx dictionary files but from what I've read /var/cache sounds a sensible place. If its just a warning (what exact wording is used - could you give a full output of `lintian -i` ? ) I would probably override this.
W: libcifpp1: file-in-unusual-dir var/cache/libcifpp/mmcif_ddl.dic N: N: This file or symbolic link is in a directory where files are not N: normally installed by Debian packages. N: N: Severity: warning N: N: Check: files/hierarchy-standard N:I've read the specs for /var/ in the Debian Policy. That's why I came up with /var/cache, it seems to match my requirements exactly.
There is another reason to go for a cron approach. This software will often run on servers crunching lots of files. No one will ever notice a warning about a dictionary being out of date. If there's such a warning at all. However, files get updated and might introduce new structures that are not allowed by the out-of-date dictionary and thus will produce errors.
I've made the update script such that it changes the dictionary file atomically, making sure there's no moment in time when there's only a partial dictionary file available.
regards, -maarten