From 823777346dbf8636b09a6fd8f7e4c883071886a6 Mon Sep 17 00:00:00 2001 From: bdrewery Date: Sat, 3 Mar 2018 01:18:50 +0000 Subject: Avoid double exporting PORTS_ENV. Approved by: portmgr (implicit) --- Mk/Scripts/functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Mk') diff --git a/Mk/Scripts/functions.sh b/Mk/Scripts/functions.sh index 096d50efff5a..0aa7a1ed0c2a 100644 --- a/Mk/Scripts/functions.sh +++ b/Mk/Scripts/functions.sh @@ -162,6 +162,10 @@ validate_env() { export_ports_env() { local export_vars make_cmd make_env var results value uses + if [ -n "${HAVE_PORTS_ENV:-}" ]; then + return 0 + fi + validate_env MAKE PORTSDIR uses="python compiler:features" @@ -197,6 +201,8 @@ export_ports_env() { echo "export ${var}=\"${value}\"" fi done + export HAVE_PORTS_ENV=1 + echo "export HAVE_PORTS_ENV=1" } distinfo_data() { -- cgit