From e8d0b810b1b2026f64fe1f7b1429946a0682a616 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 13 Aug 2014 22:21:03 +0200 Subject: common/hooks: remove file before copy --- common/hooks/pre-pkg/01-xdelta_repolist.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3