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 }