common/hooks: remove file before copy

This commit is contained in:
Enno Boland 2014-08-13 22:21:03 +02:00
parent d29b40ee46
commit e8d0b810b1
1 changed files with 2 additions and 1 deletions

View File

@ -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
}