correct parameters in __package_luarocks

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-02-16 23:15:31 +01:00
parent aa53a3f221
commit 272c12e3f7
1 changed files with 12 additions and 0 deletions

View File

@ -30,6 +30,18 @@ else
fi
state_should="$(cat "$__object/parameter/state")"
# Correct pre 2.1 naming - FIXME in 2.1
case "$state_should" in
installed)
echo "WARNING: $state_should is deprecated and will be removed in cdist 2.1. Please change to present/absent." >&2
state_should="present"
;;
removed)
echo "WARNING: $state_should is deprecated and will be removed in cdist 2.1. Please change to present/absent." >&2
state_should="absent"
;;
esac
is_installed="$(grep "(installed)" "$__object/explorer/pkg_status" || true)"
case "$state" in