2014-08-11 16:05:13 +00:00
|
|
|
# this hook marks files which are about to change for generating vcdiffs
|
|
|
|
|
|
|
|
hook() {
|
2014-08-13 19:59:20 +00:00
|
|
|
type -P xdelta3 > /dev/null || return 0
|
2014-08-11 16:05:13 +00:00
|
|
|
|
2014-08-13 20:30:51 +00:00
|
|
|
env
|
2014-08-11 16:05:13 +00:00
|
|
|
# create links to preserve old versions of repodata
|
2014-08-13 20:30:51 +00:00
|
|
|
find $XBPS_REPOSITORY -name "${XBPS_TARGET_MACHINE}-repodata" | while read; do
|
|
|
|
rm "${REPLY}.genVcdiff" || true
|
2014-08-13 20:21:03 +00:00
|
|
|
cp "${REPLY}" "${REPLY}.genVcdiff"
|
2014-08-13 19:59:20 +00:00
|
|
|
done
|
2014-08-11 16:05:13 +00:00
|
|
|
}
|