support proposed/* branches

Provide support for named proposed branches for selection logic

This syncs the get_release_name_from_branch() function from grenade.

Change-Id: I1adabf07cdc3ea6863cd30d8b6454fb40fc20288
This commit is contained in:
Adam Gandelman 2014-10-14 15:50:18 -07:00
parent e9c70ab409
commit 8f38572588

View File

@ -549,8 +549,7 @@ function is_ubuntu {
# ``get_release_name_from_branch branch-name`` # ``get_release_name_from_branch branch-name``
function get_release_name_from_branch { function get_release_name_from_branch {
local branch=$1 local branch=$1
if [[ $branch =~ "stable/" || $branch =~ "proposed/" ]]; then
if [[ $branch =~ "stable/" ]]; then
echo ${branch#*/} echo ${branch#*/}
else else
echo "master" echo "master"