[build] Separate host parameter for CRs

Implement seperate parameter which defines remote host for review
   repository

Change-Id: Ibe6ca531c284e0586cbeabd774ee42d26109f3ae
Related-Bug: #1628470
This commit is contained in:
Dmitry Burmistrov 2016-09-28 17:40:09 +03:00
parent 775e859e5e
commit fdccee5ee5
2 changed files with 4 additions and 2 deletions

View File

@ -165,6 +165,7 @@ main () {
if [ "$GERRIT_CHANGE_STATUS" == "NEW" ] && [ -n "$LP_BUG" -o -n "$CUSTOM_REPO_ID" ] ; then if [ "$GERRIT_CHANGE_STATUS" == "NEW" ] && [ -n "$LP_BUG" -o -n "$CUSTOM_REPO_ID" ] ; then
local DEB_REQUEST_REPO_PATH=${DEB_REQUEST_REPO_PATH:-$DEB_REPO_PATH} local DEB_REQUEST_REPO_PATH=${DEB_REQUEST_REPO_PATH:-$DEB_REPO_PATH}
local REMOTE_REQUEST_REPO_HOST=${REMOTE_REQUEST_REPO_HOST:-$REMOTE_REPO_HOST}
case true in case true in
"$IS_HOTFIX" ) "$IS_HOTFIX" )
local DEB_REQUEST_DIST_NAME=$DEB_HOTFIX_DIST_NAME local DEB_REQUEST_DIST_NAME=$DEB_HOTFIX_DIST_NAME
@ -179,7 +180,7 @@ main () {
local DEB_REQUEST_DIST_NAME=$DEB_DIST_NAME local DEB_REQUEST_DIST_NAME=$DEB_DIST_NAME
;; ;;
esac esac
EXTRAREPO="${EXTRAREPO}|http://${REMOTE_REPO_HOST}/${REPO_REQUEST_PATH_PREFIX}/${REQUEST}/${DEB_REQUEST_REPO_PATH} ${DEB_REQUEST_DIST_NAME} ${COMPONENTS}" EXTRAREPO="${EXTRAREPO}|http://${REMOTE_REQUEST_REPO_HOST}/${REPO_REQUEST_PATH_PREFIX}/${REQUEST}/${DEB_REQUEST_REPO_PATH} ${DEB_REQUEST_DIST_NAME} ${COMPONENTS}"
fi fi
export EXTRAREPO export EXTRAREPO

View File

@ -153,6 +153,7 @@ This package provides the %{-n*} kernel modules
esac esac
if [ "$GERRIT_CHANGE_STATUS" == "NEW" ] && [ -n "$LP_BUG" -o -n "$CUSTOM_REPO_ID" ] ; then if [ "$GERRIT_CHANGE_STATUS" == "NEW" ] && [ -n "$LP_BUG" -o -n "$CUSTOM_REPO_ID" ] ; then
local REMOTE_REQUEST_REPO_HOST=${REMOTE_REQUEST_REPO_HOST:-$REMOTE_REPO_HOST}
local RPM_REQUEST_HOTFIX_REPO_PATH=${RPM_REQUEST_HOTFIX_REPO_PATH:-$RPM_HOTFIX_REPO_PATH} local RPM_REQUEST_HOTFIX_REPO_PATH=${RPM_REQUEST_HOTFIX_REPO_PATH:-$RPM_HOTFIX_REPO_PATH}
local RPM_REQUEST_SECURITY_REPO_PATH=${RPM_REQUEST_SECURITY_REPO_PATH:-$RPM_SECURITY_REPO_PATH} local RPM_REQUEST_SECURITY_REPO_PATH=${RPM_REQUEST_SECURITY_REPO_PATH:-$RPM_SECURITY_REPO_PATH}
local RPM_REQUEST_PROPOSED_REPO_PATH=${RPM_REQUEST_PROPOSED_REPO_PATH:-$RPM_PROPOSED_REPO_PATH} local RPM_REQUEST_PROPOSED_REPO_PATH=${RPM_REQUEST_PROPOSED_REPO_PATH:-$RPM_PROPOSED_REPO_PATH}
@ -171,7 +172,7 @@ This package provides the %{-n*} kernel modules
local RPM_REQUEST_REPO_PATH=$RPM_REQUEST_OS_REPO_PATH local RPM_REQUEST_REPO_PATH=$RPM_REQUEST_OS_REPO_PATH
;; ;;
esac esac
EXTRAREPO="${EXTRAREPO}|repo5,http://${REMOTE_REPO_HOST}/${REPO_REQUEST_PATH_PREFIX}/${REQUEST}/${RPM_REQUEST_REPO_PATH}/x86_64" EXTRAREPO="${EXTRAREPO}|repo5,http://${REMOTE_REQUEST_REPO_HOST}/${REPO_REQUEST_PATH_PREFIX}/${REQUEST}/${RPM_REQUEST_REPO_PATH}/x86_64"
fi fi
export EXTRAREPO export EXTRAREPO