2014-08-11 18:05:13 +02:00
|
|
|
# this hook marks files which are about to change for generating vcdiffs
|
|
|
|
|
|
|
|
hook() {
|
2014-08-14 12:28:27 +02:00
|
|
|
[ -z "$XBPS_REPO_DELTAS" ] && return 0
|
2014-08-13 21:59:20 +02:00
|
|
|
type -P xdelta3 > /dev/null || return 0
|
2014-08-11 18:05:13 +02:00
|
|
|
|
|
|
|
# create links to preserve old versions of repodata
|
2014-08-13 22:30:51 +02:00
|
|
|
find $XBPS_REPOSITORY -name "${XBPS_TARGET_MACHINE}-repodata" | while read; do
|
2014-08-14 08:56:48 +02:00
|
|
|
( rm "${REPLY}.genVcdiff" 2>/dev/null ) || true
|
2014-08-13 22:21:03 +02:00
|
|
|
cp "${REPLY}" "${REPLY}.genVcdiff"
|
2014-08-13 21:59:20 +02:00
|
|
|
done
|
2014-08-11 18:05:13 +02:00
|
|
|
}
|