summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2023-12-20 02:04:09 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2023-12-20 02:04:09 -0500
commit3dec31eccb137c90b0f6a28e8c44f6ad67628293 (patch)
tree8b1737743af498d49eec8e8366169d37f5d3a354
parent93cd11baa8045760501c96f95d246a9a0e18a375 (diff)
-rw-r--r--src/lib/blacklist.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/blacklist.sh b/src/lib/blacklist.sh
index edea28d..dd65e77 100644
--- a/src/lib/blacklist.sh
+++ b/src/lib/blacklist.sh
@@ -27,6 +27,9 @@ source "$(librelib conf)"
## constants ##
# CACHE_DIR allows running (eg: `db-import`) via CLI (eg: manually as 'repo')
+# NOTE: normally, conf.sh (librelib conf) sets XDG_CACHE_HOME for this purpose
+# but may behaves unexpectedly, eg: if $LIBREUSER is unset
+# ie: perhaps $CACHE_DIR can be replaced with that advice
readonly CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}"
readonly BLACKLIST_CACHED="$CACHE_DIR/libretools/blacklist.txt"
readonly PACKAGE_BLACKLIST=/usr/share/doc/your-freedom/blacklist.txt