From 2fe091cc7045fe8c84a323925e204f4bc5bfcc39 Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 14 Jan 2012 12:21:13 +0000 Subject: [PATCH] recognize pkgpath changes when updating --- infrastructure/mk/bsd.port.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/infrastructure/mk/bsd.port.mk b/infrastructure/mk/bsd.port.mk index 09935aa4061..192165564f9 100644 --- a/infrastructure/mk/bsd.port.mk +++ b/infrastructure/mk/bsd.port.mk @@ -1,6 +1,6 @@ #-*- mode: Makefile; tab-width: 4; -*- # ex:ts=4 sw=4 filetype=make: -# $OpenBSD: bsd.port.mk,v 1.1153 2011/12/21 05:16:04 miod Exp $ +# $OpenBSD: bsd.port.mk,v 1.1154 2012/01/14 12:21:13 espie Exp $ # $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $ # $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $ # @@ -1738,7 +1738,8 @@ ${_UPDATE_COOKIE${_S}}: @mkdir -p ${UPDATE_COOKIES_DIR} . endif @${ECHO_MSG} "===> Updating for ${FULLPKGNAME${_S}}" - @a=`${PKG_INFO} -e ${FULLPKGPATH${_S}} 2>/dev/null || true`; \ + @b=`cd ${.CURDIR} && SUBPACKAGE=${_S} ${MAKE} print-plist|sed -ne '/^@pkgpath /s,,-e ,p'`; \ + a=`${PKG_INFO} -e ${FULLPKGPATH${_S}} $$b 2>/dev/null || true`; \ case $$a in \ '') ${ECHO_MSG} "Not installed, no update";; \ *) cd ${.CURDIR} && SUBPACKAGE=${_S} _DEPENDS_TARGET=package PKGPATH=${PKGPATH} \