summaryrefslogtreecommitdiffstats
path: root/tools/builder_common.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-08-15 13:10:52 -0300
committerRenato Botelho <renato@netgate.com>2016-08-15 13:11:09 -0300
commitf72d162f33cff1ebf697e3deb295a4cc0153acfa (patch)
treef07aa50740f6f7761c1a05b1d3b0a4d36e36b951 /tools/builder_common.sh
parent40eca7e3a8abdff768e29e310ba945e74fdcfe17 (diff)
downloadpfsense-f72d162f33cff1ebf697e3deb295a4cc0153acfa.zip
pfsense-f72d162f33cff1ebf697e3deb295a4cc0153acfa.tar.gz
Make it possible to create a exclude list for each architecture for poudriere bulk list
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r--tools/builder_common.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index e3f9cb0..b96d739 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -2038,6 +2038,14 @@ poudriere_bulk() {
_bulk=${SCRATCHDIR}/poudriere_bulk.${POUDRIERE_BRANCH}
sed -e "s,%%PRODUCT_NAME%%,${PRODUCT_NAME},g" ${_ref_bulk} > ${_bulk}
+ local _exclude_bulk="${POUDRIERE_BULK}.exclude.${jail_arch}"
+ if [ -f "${_exclude_bulk}" ]; then
+ mv ${_bulk} ${_bulk}.tmp
+ sed -e "s,%%PRODUCT_NAME%%,${PRODUCT_NAME},g" ${_exclude_bulk} > ${_bulk}.exclude
+ cat ${_bulk}.tmp ${_exclude_bulk} | sort | uniq -u > ${_bulk}
+ rm -f ${_bulk}.tmp ${_exclude_bulk}
+ fi
+
if ! poudriere bulk -f ${_bulk} -j ${jail_name} -p ${POUDRIERE_PORTS_NAME}; then
echo ">>> ERROR: Something went wrong..."
print_error_pfS
OpenPOWER on IntegriCloud