diff options
author | Juan RP <xtraeme@gmail.com> | 2014-10-14 17:16:29 +0000 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-10-14 17:19:07 +0000 |
commit | 033c4ed0f55334ad19cf17852da8daf7ff80f135 (patch) | |
tree | 653f4207202096baafa5c662cf20b7c1ff800a06 /common/hooks/post-pkg | |
parent | 1cee26a59f66be780297997df838fcde37e47251 (diff) | |
download | void-packages-033c4ed0f55334ad19cf17852da8daf7ff80f135.tar void-packages-033c4ed0f55334ad19cf17852da8daf7ff80f135.tar.gz void-packages-033c4ed0f55334ad19cf17852da8daf7ff80f135.tar.bz2 void-packages-033c4ed0f55334ad19cf17852da8daf7ff80f135.tar.lz void-packages-033c4ed0f55334ad19cf17852da8daf7ff80f135.tar.xz void-packages-033c4ed0f55334ad19cf17852da8daf7ff80f135.tar.zst void-packages-033c4ed0f55334ad19cf17852da8daf7ff80f135.zip |
xbps-src: remove WIP repo delta support.
- it never worked correctly
- it's WIP and looks like it will be stalled forever
- won't be necessary anymore with xbps-0.42
Diffstat (limited to 'common/hooks/post-pkg')
-rw-r--r-- | common/hooks/post-pkg/01-xdelta_repolist.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/common/hooks/post-pkg/01-xdelta_repolist.sh b/common/hooks/post-pkg/01-xdelta_repolist.sh deleted file mode 100644 index 09ad59f3fd6..00000000000 --- a/common/hooks/post-pkg/01-xdelta_repolist.sh +++ /dev/null @@ -1,27 +0,0 @@ -# This hook generates vcdiffs for repository data. - -hook() { - [ -z "$XBPS_REPO_DELTAS" ] && return 0 - type -P xdelta3 > /dev/null || return 0 - - find $XBPS_REPOSITORY -name "${XBPS_TARGET_MACHINE}-repodata.genVcdiff" | xargs -r sha256sum | \ - while read chk oldfile; do - newfile=${oldfile/.genVcdiff/} - - if ! cmp -s "${newfile}" "${oldfile}"; then - newdiff="${newfile}.${chk}.vcdiff" - xdelta3 -q -f -e -s "${oldfile}" "${newfile}" "${newdiff}" - for diff in ${newfile}.*.vcdiff; do - [ "${diff}" = "${newdiff}" ] && continue; - cp -- "${diff}" "${diff}.tmp" - xdelta3 -q -f merge -m "${diff}.tmp" "${newdiff}" "${diff}" - rm -- "${diff}.tmp" - done - fi - - # generate an empty diff to the new file - newchk=`sha256sum ${newfile} | awk '{ print $1 }'` - xdelta3 -q -f -e -s "${newfile}" "${newfile}" "${newfile}.${newchk}.vcdiff" - rm -- "${oldfile}" - done -} |