Date: Mon, 17 Jul 2006 11:42:50 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 101754 for review Message-ID: <200607171142.k6HBgo0m079768@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101754 Change 101754 by gabor@gabor_spitfire on 2006/07/17 11:42:06 Deinstall-all works now with chrooted pkg_info and pkg_delete. Affected files ... .. //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#29 edit Differences ... ==== //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#29 (text+ko) ==== @@ -4270,6 +4270,7 @@ ${SU_CMD} "${MAKE} ${__softMAKEFLAGS} ${.TARGET}" @${ECHO_MSG} "===> Returning to user credentials" .else +.if !defined(DESTDIR) @${ECHO_MSG} "===> Deinstalling for ${PKGORIGIN}" @deinstall_names=`${PKG_INFO} -q -O ${PKGORIGIN}`; \ if [ -n "$${deinstall_names}" ]; then \ @@ -4280,6 +4281,18 @@ else \ ${ECHO_MSG} "===> ${PKGORIGIN} not installed, skipping"; \ fi +.else + @${ECHO_MSG} "===> Deinstalling for ${PKGORIGIN} from ${DESTDIR}" + @deinstall_names=`${CHROOT} ${DESTDIR} ${PKG_INFO} -q -O ${PKGORIGIN}`; \ + if [ -n "$${deinstall_names}" ]; then \ + for d in $${deinstall_names}; do \ + ${ECHO_MSG} "===> Deinstalling $${d} from ${DESTDIR}"; \ + ${CHROOT} ${DESTDIR} ${PKG_DELETE} -f $${d}; \ + done; \ + else \ + ${ECHO_MSG} "===> ${PKGORIGIN} not installed in ${DESTDIR}, skipping"; \ + fi +.endif @${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE} .endif .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607171142.k6HBgo0m079768>