hooks/xdelta: style twerks.

This commit is contained in:
Juan RP 2014-08-13 21:59:20 +02:00
parent 8ff17f52f3
commit c0afddcdbc
2 changed files with 5 additions and 7 deletions

View file

@ -1,8 +1,7 @@
# This hook generates vcdiffs # This hook generates vcdiffs
hook() { hook() {
set -x type -P xdelta3 > /dev/null || return 0
type -P xdelta3 > /dev/null || return 0;
find $XBPS_REPOSITORY -name '*.genVcdiff' | xargs -r sha256sum | \ find $XBPS_REPOSITORY -name '*.genVcdiff' | xargs -r sha256sum | \
while read chk oldfile; do while read chk oldfile; do

View file

@ -1,11 +1,10 @@
# this hook marks files which are about to change for generating vcdiffs # this hook marks files which are about to change for generating vcdiffs
hook() { hook() {
type -P xdelta3 > /dev/null || return 0; type -P xdelta3 > /dev/null || return 0
# create links to preserve old versions of repodata # create links to preserve old versions of repodata
find $XBPS_REPOSITORY -name '*-repodata' | \ find $XBPS_REPOSITORY -name '*-repodata' | while read; do
while read; do
ln "${REPLY}" "${REPLY}.genVcdiff" ln "${REPLY}" "${REPLY}.genVcdiff"
done done
} }