From 9e8f536df73516a41a11d8155dbed59a6a09fd4d Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 16 Oct 2010 22:05:31 -0500 Subject: [PATCH] script/makepkg: add flag to clear port_config_recursive cache on first call --- script/makepkg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/makepkg b/script/makepkg index 7e15537..9e0c13a 100755 --- a/script/makepkg +++ b/script/makepkg @@ -149,6 +149,8 @@ port_config() { # Make config-conditional for a list of ports, and all dependencies port_config_recursive() { + # Clear cache if first value isn't '-r' + [ "${1}" = '-r' ] && shift || _port_config_recursive_cache="" while [ "${1}" ] do # Do not use config-recursive because it computes the depchain first; @@ -160,7 +162,7 @@ port_config_recursive() { then meh "port config-recursive ${1}" chmake "${1}" config-conditional < /dev/tty - port_config_recursive $(port_deps "${1}") + port_config_recursive -r $(port_deps "${1}") _port_config_recursive_cache="${_port_config_recursive_cache} ${1} " fi shift -- 2.42.0