2015-07-03 18:30:34 +02:00
|
|
|
# vim: set ts=4 sw=4 et:
|
|
|
|
|
|
|
|
update_hash_cache() {
|
|
|
|
local cache="$XBPS_SRCDISTDIR/by_sha256"
|
|
|
|
local distfile curfile
|
|
|
|
mkdir -p "$cache"
|
|
|
|
find "$XBPS_SRCDISTDIR" -type f | grep -v by_sha256 | while read -r distfile; do
|
2019-04-13 18:41:00 +02:00
|
|
|
cksum=$($XBPS_DIGEST_CMD "$distfile")
|
2015-09-11 07:55:40 +02:00
|
|
|
curfile="${distfile##*/}"
|
2015-07-03 18:30:34 +02:00
|
|
|
ln -vf "$distfile" "${cache}/${cksum}_${curfile}"
|
|
|
|
done
|
|
|
|
}
|