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