Date: Wed, 4 Aug 2004 00:54:52 +0300 (EEST) From: Dancho Penev <dpenev@mnet.bg> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/69965: check for moved ports in "make deinstall-all" Message-ID: <200408032154.i73LsqvE026731@earth.dpsca.bg> Resent-Message-ID: <200408032200.i73M0jkr035232@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 69965 >Category: ports >Synopsis: check for moved ports in "make deinstall-all" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 03 22:00:45 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Dancho Penev >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD earth.dpsca.bg 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Jul 29 14:30:05 EEST 2004 root@earth.dpsca.bg:/usr/obj/usr/src/sys/EARTH i386 >Description: When deinstalling all installations with the same ${PKGORIGIN} check also if there are previous installations of already moved port. >How-To-Repeat: >Fix: --- bsd.port.mk.orig Fri Jul 23 22:10:05 2004 +++ bsd.port.mk Wed Aug 4 00:41:47 2004 @@ -3748,6 +3748,9 @@ .else @${ECHO_MSG} "===> Deinstalling for ${PKGORIGIN}" @deinstall_names=`${PKG_INFO} -q -O ${PKGORIGIN}`; \ + for oldpkgorigin in $$(${GREP} "|${PKGORIGIN}|" ${PORTSDIR}/MOVED | ${CUT} -f 1 -d '|' | ${SORT} -u); do \ + deinstall_names="$${deinstall_names} $$(${PKG_INFO} -q -O $${oldpkgorigin})"; \ + done; \ if [ -n "$${deinstall_names}" ]; then \ for d in $${deinstall_names}; do \ ${ECHO_MSG} "===> Deinstalling $${d}"; \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408032154.i73LsqvE026731>