summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-14 12:35:39 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-14 12:35:39 -0200
commit6610a0d6b283393c59df03bf19a27e524149f5f4 (patch)
treef3b3c8ca8e3525d84f4c819325cedadd047f0a38 /lib
parent39f407bdb202bea2fb81d4f66ce46618890ec2a7 (diff)
downloadhydra-6610a0d6b283393c59df03bf19a27e524149f5f4.tar.gz
hydra-6610a0d6b283393c59df03bf19a27e524149f5f4.tar.bz2
Adding system-upgrade subcommand
Diffstat (limited to 'lib')
-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
+}