From aeefcabdb00bf7a87ed24c792e2a6dca0330897a Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 30 Jul 2021 11:39:45 +0000 Subject: pkg_etcsums: variable fix FossilOrigin-Name: 1e436cfa811583b4d5424be697a6a9d0e882316bd40cf33b59a6ba4a04aba67a --- src/cpt-lib.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cpt-lib.in b/src/cpt-lib.in index ff445e0..83ed5f9 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1001,7 +1001,8 @@ pkg_etcsums() ( # makes sure that old packages continue to have the same digest algorithm # and not a bunch of '.new' files are installed. It's not foolproof at all, # but at least it keeps the /etc directory as clean as possible. - digest=$(_get_digest "$pkg_db/$1/etcsums") || digest=b3sum + digest=$(_get_digest "$sys_db/$1/etcsums") || digest=b3sum + out "$digest" case $digest in b3sum) out "%BLAKE3"; esac > "$pkg_dir/$1/$pkg_db/$1/etcsums" find etc -type f | while read -r file; do -- cgit v1.2.3