svn commit: r316281 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Mon Apr 22 22:13:15 UTC 2013


Author: bapt
Date: Mon Apr 22 22:13:14 2013
New Revision: 316281
URL: http://svnweb.freebsd.org/changeset/ports/316281

Log:
  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@

Modified:
  head/Mk/bsd.pkgng.mk

Modified: head/Mk/bsd.pkgng.mk
==============================================================================
--- head/Mk/bsd.pkgng.mk	Mon Apr 22 22:06:34 2013	(r316280)
+++ head/Mk/bsd.pkgng.mk	Mon Apr 22 22:13:14 2013	(r316281)
@@ -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; \


More information about the svn-ports-all mailing list