common/hooks: use ln -f instead of cp

This commit is contained in:
Enno Boland 2014-08-13 22:19:30 +02:00
parent 179c07cc30
commit d29b40ee46

View file

@ -5,6 +5,6 @@ hook() {
# create links to preserve old versions of repodata
find $XBPS_REPOSITORY -name '*-repodata' | while read; do
cp "${REPLY}" "${REPLY}.genVcdiff"
ln -f "${REPLY}" "${REPLY}.genVcdiff"
done
}