hooks/xdelta: style twerks.
This commit is contained in:
parent
8ff17f52f3
commit
c0afddcdbc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue