diff -r e0a651547bd2 -r 76ed62924d50 lib/pvl/hosts/zone.sh --- a/lib/pvl/hosts/zone.sh Tue Mar 03 12:08:58 2015 +0200 +++ b/lib/pvl/hosts/zone.sh Tue Mar 03 12:09:22 2015 +0200 @@ -13,16 +13,18 @@ function update_hosts_forward { local out="$1" local src="$2" - local srcs=($(list_tree $src)) local msg="$out: Generating forward hosts zone: $src" + local include_cache=$(include_cache_path $src) + local srcs=($(include_cache $include_cache)) - if apply_check "$out" "${srcs[@]}"; then + if apply_check "$out" ${srcs[@]:-}; then log_skip "$msg" else log_apply "$msg" apply_cmd "$out" $OPT/bin/pvl.hosts-forward \ - --hosts-include="$HOSTS_INCLUDE" \ + --hosts-include=$HOSTS_INCLUDE \ + --hosts-include-trace=$include_cache \ "$src" fi } @@ -33,16 +35,18 @@ function update_hosts_reverse { local out="$1" local src="$2" - local srcs=($(list_tree $src)) local msg="$out: Generating reverse hosts zone: $src" + local include_cache=$(include_cache_path $src) + local srcs=($(include_cache $include_cache)) - if apply_check "$out" "${srcs[@]}"; then + if apply_check "$out" ${srcs[@]:-}; then log_skip "$msg" else log_apply "$msg" apply_cmd "$out" $OPT/bin/pvl.hosts-reverse \ --hosts-include="$HOSTS_INCLUDE" \ + --hosts-include-trace=$include_cache \ "$src" fi }