Remove old links while creating the new packages

Force creation of the symlink for pkgng to avoid failure if the link already exists

Submitted by:	ohauer@
This commit is contained in:
Baptiste Daroussin 2013-04-22 22:13:14 +00:00
parent 674b198c8c
commit 0b88ec16dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316281

View file

@ -258,6 +258,9 @@ do-package: ${TMPPLIST}
fi; \
fi; \
fi;
@for cat in ${CATEGORIES}; do \
${RM} -fv ${PACKAGES}/$$cat/${PKGNAMEPREFIX}${PORTNAME}*${PKG_SUFX} ; \
done
@if ${PKG_CREATE} -o ${PKGREPOSITORY} ${PKGNAME}; then \
if [ "${PKGORIGIN}" = "ports-mgmt/pkg" ]; then \
if [ ! -d ${PKGLATESTREPOSITORY} ]; then \
@ -266,7 +269,7 @@ do-package: ${TMPPLIST}
exit 1; \
fi; \
fi ; \
${LN} -s ../${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX} ${PKGLATESTFILE} ; \
${LN} -sf ../${PKGREPOSITORYSUBDIR}/${PKGNAME}${PKG_SUFX} ${PKGLATESTFILE} ; \
fi; \
else \
cd ${.CURDIR} && eval ${MAKE} delete-package; \