fix messaging for __package_update_index

The message was printed unconditionally, even if no `apt-get update` had
been running.
remotes/origin/key_value-onchange
Thomas Eckert 7 years ago
parent c0dc26a577
commit 94c9d11cb8
  1. 3
      cdist/conf/type/__package_update_index/gencode-remote

@ -54,11 +54,12 @@ case "$type" in
## check if we need to update: ## check if we need to update:
if [ $currage -ge $maxage ]; then if [ $currage -ge $maxage ]; then
echo "apt-get --quiet update" echo "apt-get --quiet update"
echo "apt-cache updated (age was: $currage)" >> "$__messages_out"
fi fi
else else
echo "apt-get --quiet update" echo "apt-get --quiet update"
echo "apt-cache updated (age was: $currage)" >> "$__messages_out"
fi fi
echo "apt-cache updated (age was: $currage)" >> "$__messages_out"
;; ;;
pacman) echo "pacman --noprogressbar --sync --refresh" ;; pacman) echo "pacman --noprogressbar --sync --refresh" ;;
*) *)

Loading…
Cancel
Save