From 37aedfab778ca555414f7e6362497b072ae478e8 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Thu, 4 Jan 2018 19:58:18 +0000 Subject: [PATCH] Fix some *-list targets not properly passing FLAVOR down the chain. Approved by: portmgr (implicit) MFH: 2018Q1 --- Mk/Scripts/depends-list.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mk/Scripts/depends-list.sh b/Mk/Scripts/depends-list.sh index d035d6b26f10..b5d554a406e5 100644 --- a/Mk/Scripts/depends-list.sh +++ b/Mk/Scripts/depends-list.sh @@ -53,6 +53,7 @@ check_dep() { local _dep wrkdir show_dep for _dep ; do + unset FLAOVR myifs=${IFS} IFS=: set -- ${_dep} @@ -65,7 +66,10 @@ check_dep() { case "${d}" in *@*/*) ;; # Ignore @ in the path which would not be a flavor - *@*) d=${d%@*} ;; + *@*) + export FLAVOR=${d##*@} + d=${d%@*} + ;; esac case " ${checked} " in