aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mk/bsd.pkgng.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mk/bsd.pkgng.mk b/Mk/bsd.pkgng.mk
index 1cd9a8f15c0..b5c0a27422d 100644
--- a/Mk/bsd.pkgng.mk
+++ b/Mk/bsd.pkgng.mk
@@ -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; \