common/hooks: remove file before copy
This commit is contained in:
parent
d29b40ee46
commit
e8d0b810b1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue