common/hooks: delta creation: only generate own delta for own XBPS_TARGET_MACHINE
This commit is contained in:
parent
b317e8ff03
commit
0f20ab1139
|
@ -3,7 +3,7 @@
|
||||||
hook() {
|
hook() {
|
||||||
type -P xdelta3 > /dev/null || return 0
|
type -P xdelta3 > /dev/null || return 0
|
||||||
|
|
||||||
find $XBPS_REPOSITORY -name '*.genVcdiff' | xargs -r sha256sum | \
|
find $XBPS_REPOSITORY -name "${XBPS_TARGET_MACHINE}-repodata.genVcdiff" | xargs -r sha256sum | \
|
||||||
while read chk oldfile; do
|
while read chk oldfile; do
|
||||||
newfile=${oldfile/.genVcdiff/}
|
newfile=${oldfile/.genVcdiff/}
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
hook() {
|
hook() {
|
||||||
type -P xdelta3 > /dev/null || return 0
|
type -P xdelta3 > /dev/null || return 0
|
||||||
|
|
||||||
|
env
|
||||||
# create links to preserve old versions of repodata
|
# create links to preserve old versions of repodata
|
||||||
find $XBPS_REPOSITORY -name '*-repodata' | while read; do
|
find $XBPS_REPOSITORY -name "${XBPS_TARGET_MACHINE}-repodata" | while read; do
|
||||||
rm "${REPLY}.genVcdiff"
|
rm "${REPLY}.genVcdiff" || true
|
||||||
cp "${REPLY}" "${REPLY}.genVcdiff"
|
cp "${REPLY}" "${REPLY}.genVcdiff"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue