From c0afddcdbca0def5bbfb15c01f0256b1b80e802c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 13 Aug 2014 21:59:20 +0200 Subject: [PATCH] hooks/xdelta: style twerks. --- common/hooks/post-pkg/01-xdelta_repolist.sh | 3 +-- common/hooks/pre-pkg/01-xdelta_repolist.sh | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/common/hooks/post-pkg/01-xdelta_repolist.sh b/common/hooks/post-pkg/01-xdelta_repolist.sh index 24c961a470f..5d2fcd5368c 100644 --- a/common/hooks/post-pkg/01-xdelta_repolist.sh +++ b/common/hooks/post-pkg/01-xdelta_repolist.sh @@ -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 diff --git a/common/hooks/pre-pkg/01-xdelta_repolist.sh b/common/hooks/pre-pkg/01-xdelta_repolist.sh index 4a3941885e2..c4cb0d5b518 100644 --- a/common/hooks/pre-pkg/01-xdelta_repolist.sh +++ b/common/hooks/pre-pkg/01-xdelta_repolist.sh @@ -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 }