aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/hooks/pre-pkg/01-xdelta_repolist.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/hooks/pre-pkg/01-xdelta_repolist.sh b/common/hooks/pre-pkg/01-xdelta_repolist.sh
index 04d55d04c61..389f5260946 100644
--- a/common/hooks/pre-pkg/01-xdelta_repolist.sh
+++ b/common/hooks/pre-pkg/01-xdelta_repolist.sh
@@ -5,6 +5,7 @@ hook() {
# create links to preserve old versions of repodata
find $XBPS_REPOSITORY -name '*-repodata' | while read; do
- ln -f "${REPLY}" "${REPLY}.genVcdiff"
+ rm "${REPLY}.genVcdiff" 2> /dev/null
+ cp "${REPLY}" "${REPLY}.genVcdiff"
done
}