From 87927cf1fcb4556c64c470d38a3c54878570c64e Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Fri, 3 Apr 2015 12:26:07 +0200 Subject: [PATCH] MT#10697 Add ngcpppainstaller boot option It allows to test scenarios where ngcp-installer is comming from one PPA while other packages (like ngcp-templates) are comming from another PPA. By default NGCP_PPA_INSTALLER is equal to NGCP_PPA, so we still can define one boot option only: > ngcpppa=gerrit_MT12345_review777 while for some cases it is useful to define: > ngcpppa=gerrit_MT12345_review777 ngcpppainstaller=gerrit_MT54321_review778 Change-Id: Icf2fee70db1beaae08e9d9c3eba87c5a836661b7 --- deployment.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deployment.sh b/deployment.sh index 9317a84..6a7a2de 100755 --- a/deployment.sh +++ b/deployment.sh @@ -598,6 +598,11 @@ fi if checkBootParam ngcpppa ; then NGCP_PPA=$(getBootParam ngcpppa) + NGCP_PPA_INSTALLER="${NGCP_PPA_INSTALLER:-${NGCP_PPA}}" +fi + +if checkBootParam ngcpppainstaller ; then + NGCP_PPA_INSTALLER=$(getBootParam ngcpppainstaller) fi ## }}} @@ -1390,8 +1395,8 @@ get_installer_path() { INSTALLER_PATH="http://${SIPWISE_REPO_HOST}/autobuild/pool/main/n/ngcp-installer/" fi - if [ -n "$NGCP_PPA" ] ; then - local repos_base_path="http://${SIPWISE_REPO_HOST}/autobuild/dists/${NGCP_PPA}/main/binary-amd64/" + if [ -n "$NGCP_PPA_INSTALLER" ] ; then + local repos_base_path="http://${SIPWISE_REPO_HOST}/autobuild/dists/${NGCP_PPA_INSTALLER}/main/binary-amd64/" INSTALLER_PATH="http://${SIPWISE_REPO_HOST}/autobuild/pool/main/n/ngcp-installer/" fi