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
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 | \
while read chk oldfile; do

View File

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