[build] Implement separate path to CR repo

Add possibility to define request repository path separatelly

Change-Id: I16dc97355385063c213dc9faf21a48ca0becdc3c
Related-Bug: #1602232
This commit is contained in:
Dmitry Burmistrov 2016-07-25 15:13:56 +03:00
parent 3abbdda97a
commit 21a476bb48
2 changed files with 10 additions and 5 deletions

View File

@ -164,6 +164,7 @@ main () {
esac
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}
case true in
"$IS_HOTFIX" )
local DEB_REQUEST_DIST_NAME=$DEB_HOTFIX_DIST_NAME
@ -178,7 +179,7 @@ main () {
local DEB_REQUEST_DIST_NAME=$DEB_DIST_NAME
;;
esac
EXTRAREPO="${EXTRAREPO}|http://${REMOTE_REPO_HOST}/${REPO_REQUEST_PATH_PREFIX}/${REQUEST}/${DEB_REPO_PATH} ${DEB_REQUEST_DIST_NAME} ${COMPONENTS}"
EXTRAREPO="${EXTRAREPO}|http://${REMOTE_REPO_HOST}/${REPO_REQUEST_PATH_PREFIX}/${REQUEST}/${DEB_REQUEST_REPO_PATH} ${DEB_REQUEST_DIST_NAME} ${COMPONENTS}"
fi
export EXTRAREPO

View File

@ -153,18 +153,22 @@ This package provides the %{-n*} kernel modules
esac
if [ "$GERRIT_CHANGE_STATUS" == "NEW" ] && [ -n "$LP_BUG" -o -n "$CUSTOM_REPO_ID" ] ; then
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_PROPOSED_REPO_PATH=${RPM_REQUEST_PROPOSED_REPO_PATH:-$RPM_PROPOSED_REPO_PATH}
local RPM_REQUEST_OS_REPO_PATH=${RPM_REQUEST_OS_REPO_PATH:-$RPM_OS_REPO_PATH}
case true in
"$IS_HOTFIX" )
local RPM_REQUEST_REPO_PATH=$RPM_HOTFIX_REPO_PATH
local RPM_REQUEST_REPO_PATH=$RPM_REQUEST_HOTFIX_REPO_PATH
;;
"$IS_SECURITY" )
local RPM_REQUEST_REPO_PATH=$RPM_SECURITY_REPO_PATH
local RPM_REQUEST_REPO_PATH=$RPM_REQUEST_SECURITY_REPO_PATH
;;
"$IS_UPDATES" )
local RPM_REQUEST_REPO_PATH=$RPM_PROPOSED_REPO_PATH
local RPM_REQUEST_REPO_PATH=$RPM_REQUEST_PROPOSED_REPO_PATH
;;
* )
local RPM_REQUEST_REPO_PATH=$RPM_OS_REPO_PATH
local RPM_REQUEST_REPO_PATH=$RPM_REQUEST_OS_REPO_PATH
;;
esac
EXTRAREPO="${EXTRAREPO}|repo5,http://${REMOTE_REPO_HOST}/${REPO_REQUEST_PATH_PREFIX}/${REQUEST}/${RPM_REQUEST_REPO_PATH}/x86_64"