diff options
author | Renato Botelho <renato@netgate.com> | 2016-05-03 08:58:41 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-05-03 08:58:56 -0300 |
commit | 71002df866c3036b3a46521f92f9b1bb22925b41 (patch) | |
tree | 0418d6ff44045a0a9ae88729d8117c43309efbdf /tools/builder_common.sh | |
parent | c81678f4e15f8069b6c6de2a26944c2900e00834 (diff) | |
download | pfsense-71002df866c3036b3a46521f92f9b1bb22925b41.zip pfsense-71002df866c3036b3a46521f92f9b1bb22925b41.tar.gz |
Use right server to replace packagesite
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r-- | tools/builder_common.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 6c684ac..1530cb5 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -1304,9 +1304,14 @@ customize_stagearea_for_image() { # staging server during build phase if [ -n "${USE_PKG_REPO_STAGING}" ]; then _read_cmd="select value from repodata where key='packagesite'" + if [ -n "${_IS_RELEASE}" ]; then + local _tgt_server="${PKG_REPO_SERVER_RELEASE}" + else + local _tgt_server="${PKG_REPO_SERVER_DEVEL}" + fi for _db in ${FINAL_CHROOT_DIR}/var/db/pkg/repo-*sqlite; do _cur=$(/usr/local/bin/sqlite3 ${_db} "${_read_cmd}") - _new=$(echo "${_cur}" | sed -e "s,^${PKG_REPO_SERVER_STAGING},${PKG_REPO_SERVER_RELEASE},") + _new=$(echo "${_cur}" | sed -e "s,^${PKG_REPO_SERVER_STAGING},${_tgt_server},") /usr/local/bin/sqlite3 ${_db} "update repodata set value='${_new}' where key='packagesite'" done fi |