aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib.in3
1 files changed, 2 insertions, 1 deletions
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