diff options
author | merakor <cem@ckyln.com> | 2021-07-30 11:39:45 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-07-30 11:39:45 +0000 |
commit | aeefcabdb00bf7a87ed24c792e2a6dca0330897a (patch) | |
tree | facc120b2c8cb19bfaa233e35d3fc505c09ad827 | |
parent | fcb7c68220403e6f68d93286c783dd60a7da61ea (diff) | |
download | cpt-aeefcabdb00bf7a87ed24c792e2a6dca0330897a.tar.gz |
pkg_etcsums: variable fix
FossilOrigin-Name: 1e436cfa811583b4d5424be697a6a9d0e882316bd40cf33b59a6ba4a04aba67a
-rw-r--r-- | src/cpt-lib.in | 3 |
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 |