From 6610a0d6b283393c59df03bf19a27e524149f5f4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 14 Feb 2013 12:35:39 -0200 Subject: Adding system-upgrade subcommand --- lib/hydra/misc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/hydra/misc') diff --git a/lib/hydra/misc b/lib/hydra/misc index 24db45b..9aca158 100644 --- a/lib/hydra/misc +++ b/lib/hydra/misc @@ -106,3 +106,17 @@ function hydra_safe_run { $* hydra_exit_on_error $* } + +# Determine the next debian release +function hydra_next_debian_release { + local release="$1" + + if [ "$release" == "lenny" ]; then + echo "squeeze" + elif [ "$release" == "squeeze" ]; then + echo "wheezy" + else + echo "Unsupported release" + exit 1 + fi +} -- cgit v1.2.3