aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/pre-pkg
diff options
context:
space:
mode:
authorEnno Boland <g@s01.de>2014-08-13 20:21:03 +0000
committerEnno Boland <g@s01.de>2014-08-13 20:21:03 +0000
commite8d0b810b1b2026f64fe1f7b1429946a0682a616 (patch)
tree333f7e38f806b328b854bef9eace2fcee6a093bd /common/hooks/pre-pkg
parentd29b40ee4653a9ebd7b337941e40230a5261b2a4 (diff)
downloadvoid-packages-e8d0b810b1b2026f64fe1f7b1429946a0682a616.tar
void-packages-e8d0b810b1b2026f64fe1f7b1429946a0682a616.tar.gz
void-packages-e8d0b810b1b2026f64fe1f7b1429946a0682a616.tar.bz2
void-packages-e8d0b810b1b2026f64fe1f7b1429946a0682a616.tar.lz
void-packages-e8d0b810b1b2026f64fe1f7b1429946a0682a616.tar.xz
void-packages-e8d0b810b1b2026f64fe1f7b1429946a0682a616.tar.zst
void-packages-e8d0b810b1b2026f64fe1f7b1429946a0682a616.zip
common/hooks: remove file before copy
Diffstat (limited to 'common/hooks/pre-pkg')
-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
}