diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2018-01-05 03:58:18 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2018-01-05 03:58:18 +0800 |
commit | b499d2a96a37cfe8df074f118c5a8201c5e3ab7d (patch) | |
tree | 43226ba1cdb48b639e08303b39a0f264661ac2ff /Mk/Scripts | |
parent | cc564493b350e08cd541846236231a2448845c0b (diff) | |
download | freebsd-ports-gnome-b499d2a96a37cfe8df074f118c5a8201c5e3ab7d.tar.gz freebsd-ports-gnome-b499d2a96a37cfe8df074f118c5a8201c5e3ab7d.tar.zst freebsd-ports-gnome-b499d2a96a37cfe8df074f118c5a8201c5e3ab7d.zip |
Fix some *-list targets not properly passing FLAVOR down the chain.
Approved by: portmgr (implicit)
MFH: 2018Q1
Diffstat (limited to 'Mk/Scripts')
-rw-r--r-- | Mk/Scripts/depends-list.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |