diff options
author | kris <kris@FreeBSD.org> | 2003-05-23 12:14:18 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-05-23 12:14:18 +0800 |
commit | 69c8acb5ed82d90f352492860d8205030c837cba (patch) | |
tree | f8e8f6fcb61883635aabed3f35912c2407f50b63 /Mk | |
parent | 889db38e89c54414d2dc8d14cd34e89bfea7c628 (diff) | |
download | freebsd-ports-gnome-69c8acb5ed82d90f352492860d8205030c837cba.tar.gz freebsd-ports-gnome-69c8acb5ed82d90f352492860d8205030c837cba.tar.zst freebsd-ports-gnome-69c8acb5ed82d90f352492860d8205030c837cba.zip |
Back out parts [3] and [5] of r1.446, which dealt with improved
'make deinstall' behaviour and stricter checking for an installed package.
There were some edge-case problems with these patches that we were not
able to solve in time for 5.1-RELEASE. They'll probably reappear in
a modified form soon after release.
Discussed with: marcus, Sergey Matveychuk <sem@ciam.ru>
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 7eb24354a69a..3b7b2d5aba62 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -2910,8 +2910,7 @@ delete-package-list: delete-package-links-list .if !target(check-already-installed) check-already-installed: .if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER) - @if [ -d ${PKG_DBDIR}/${PKGNAME} -o \ - "x`${PKG_INFO} -q -O ${PKGORIGIN} 2> /dev/null`" != "x" ]; then \ + @if [ -d ${PKG_DBDIR}/${PKGNAME} ]; then \ ${ECHO_CMD} "===> ${PKGNAME} is already installed - perhaps an older version?"; \ ${ECHO_CMD} " If so, you may wish to \`\`make deinstall'' and install"; \ ${ECHO_CMD} " this port again by \`\`make reinstall'' to upgrade it properly."; \ @@ -3263,13 +3262,11 @@ reinstall: .if !target(deinstall) deinstall: - @deinstall_name=`${PKG_INFO} -q -O ${PKGORIGIN} 2> /dev/null`; \ - ${TEST} -z $${deinstall_name} && deinstall_name=${PKGNAME}; \ - ${ECHO_MSG} "===> Deinstalling for ${PKGORIGIN} ($${deinstall_name})"; \ - if ${PKG_INFO} -e $${deinstall_name}; then \ - ${PKG_DELETE} -f $${deinstall_name}; \ + @${ECHO_MSG} "===> Deinstalling for ${PKGNAME}" + @if ${PKG_INFO} -e ${PKGNAME}; then \ + ${PKG_DELETE} -f ${PKGNAME}; \ else \ - ${ECHO_MSG} "===> ${PKGORIGIN} not installed, skipping"; \ + ${ECHO_MSG} "===> ${PKGNAME} not installed, skipping"; \ fi @${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE} .endif |