diff options
author | Enno Boland <g@s01.de> | 2014-08-11 16:05:13 +0000 |
---|---|---|
committer | Enno Boland <g@s01.de> | 2014-08-11 16:05:13 +0000 |
commit | f4544b82a6d53a413bd093ec0bb490e21c04801a (patch) | |
tree | c0b7fc6c7fc5d9039090a0bd56eb89cb43f80a36 /common/hooks/pre-pkg | |
parent | 19332495b8fb4bc83c9fb83c6474cb16784c9d56 (diff) | |
download | void-packages-f4544b82a6d53a413bd093ec0bb490e21c04801a.tar void-packages-f4544b82a6d53a413bd093ec0bb490e21c04801a.tar.gz void-packages-f4544b82a6d53a413bd093ec0bb490e21c04801a.tar.bz2 void-packages-f4544b82a6d53a413bd093ec0bb490e21c04801a.tar.lz void-packages-f4544b82a6d53a413bd093ec0bb490e21c04801a.tar.xz void-packages-f4544b82a6d53a413bd093ec0bb490e21c04801a.tar.zst void-packages-f4544b82a6d53a413bd093ec0bb490e21c04801a.zip |
common/hooks: add support for vcdiff creation
Diffstat (limited to 'common/hooks/pre-pkg')
-rw-r--r-- | common/hooks/pre-pkg/01-xdelta_repolist.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/hooks/pre-pkg/01-xdelta_repolist.sh b/common/hooks/pre-pkg/01-xdelta_repolist.sh new file mode 100644 index 00000000000..6d6b21d739a --- /dev/null +++ b/common/hooks/pre-pkg/01-xdelta_repolist.sh @@ -0,0 +1,11 @@ +# this hook marks files which are about to change for generating vcdiffs + +hook() { + [ -z "$XBPS_GENERATE_VCDIFF" ] && return 0; + + # create links to preserve old versions of repodata + find $XBPS_REPOSITORY -name '*-repodata' | \ + while read; do + ln "${REPLY}" "${REPLY}.genVcdiff" + done +} |