summaryrefslogtreecommitdiff
path: root/lib/hydra/misc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hydra/misc')
-rw-r--r--lib/hydra/misc14
1 files changed, 14 insertions, 0 deletions
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
+}