From 9d94ca02c9d1ced652003b53c641441bec1cc6d4 Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Mon, 9 Oct 2006 15:40:08 +0000 Subject: Simple portupgrade doesn't upgrade python correctly, so add a check and an instruction. --- lang/python27/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lang/python27') diff --git a/lang/python27/Makefile b/lang/python27/Makefile index 8831de95431e..706e204e5f2d 100644 --- a/lang/python27/Makefile +++ b/lang/python27/Makefile @@ -179,6 +179,13 @@ pre-su-install: .endfor pre-install: + @if [ -f ${PREFIX}/bin/python ]; then \ + ${ECHO_CMD} "=============================="; \ + ${ECHO_CMD} "If you're upgrading it using portupgrade, try portupgrade -o lang/python25 python-2.4.x"; \ + ${ECHO_CMD} "=============================="; \ + ${FALSE}; \ + fi + ${EGREP} -v ${PLIST_EXCLUDE} ${PLIST_TEMPLATE} | \ ${AWK} '{ print $$0; } \ /LIBDIR.*\.py$$/ && !/\/bad/ { print $$0 "o"; print $$0 "c"; }' > ${PLIST} -- cgit v1.2.3