From b713c6241359f718a4a84ca1b36210f84d8293eb Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 11 Aug 2014 19:55:14 +0200 Subject: [PATCH] common/hooks: generate null diffs to the new files itself. --- common/hooks/post-pkg/01-xdelta_repolist.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/hooks/post-pkg/01-xdelta_repolist.sh b/common/hooks/post-pkg/01-xdelta_repolist.sh index a18f6ae3071..d5f2099b3f6 100644 --- a/common/hooks/post-pkg/01-xdelta_repolist.sh +++ b/common/hooks/post-pkg/01-xdelta_repolist.sh @@ -19,6 +19,11 @@ hook() { done fi + # generate an empty diff to the new file + newchk=`sha256sum ${newfile} | awk '{ print $1 }'` + xdelta3 -D -R -f -e -s "${newfile}" "${newfile}" \ + "${newfile}.${newchk}.vcdiff" + rm -- "${oldfile}" done }