void-packages/common/hooks/pre-pkg/01-xdelta_repolist.sh
2014-08-11 18:05:13 +02:00

12 lines
292 B
Bash

# this hook marks files which are about to change for generating vcdiffs
hook() {
[ -z "$XBPS_GENERATE_VCDIFF" ] && return 0;
# create links to preserve old versions of repodata
find $XBPS_REPOSITORY -name '*-repodata' | \
while read; do
ln "${REPLY}" "${REPLY}.genVcdiff"
done
}