From c8919e85749be9d644df1ea1f7539be2b1296ab9 Mon Sep 17 00:00:00 2001 From: Thomas Oulevey Date: Jul 28 2015 13:39:23 +0000 Subject: Add -b option for enabling additional repos for bootstrap (use case SCL bootstrap) --- diff --git a/scripts/create_sig.sh b/scripts/create_sig.sh index 349c01b..372bd64 100755 --- a/scripts/create_sig.sh +++ b/scripts/create_sig.sh @@ -8,16 +8,18 @@ usage: $0 -d -s -t This script generate new build target in koji for SIGS. OPTIONS: + -b : Enable non public bootstrap repo (SCLO SIG only) + -c COLLECTION : mariadb100 (a single collection can be used at this time) -d Distribution : 5 6 7 - -s SIG name : cloud -p SIG project name : cloud6-, sclo-, etc... -r SIG project release name : cloud6-openstack- + -s SIG name : cloud -t DISTTAGS : "el7 el7.centos el7_0" - -c COLLECTION : mariadb100 (a single collection can be used at this time) -x : delete old -build tag and then recreate. EOF } +optionb=false optiond=false options=false optiont=false @@ -26,13 +28,16 @@ optionp=false optionr=false optionx=false -while getopts ":hxd:s:t:c:p:r:" OPTION +while getopts ":hxbd:s:t:c:p:r:" OPTION do case $OPTION in h) usage exit 0 ;; + b) + optionb=true + ;; d) optiond=true DISTS="${OPTARG}" @@ -163,6 +168,15 @@ do $KOJI add-target $R_SIG-$TAG $R_SIG-$TAG-build $R_SIG-candidate $KOJI add-external-repo --tag=$R_SIG-$TAG-build centos${DIST}-updates $KOJI add-external-repo --tag=$R_SIG-$TAG-build centos${DIST}-os + # START bootstrap + if ( $optionb ) + then + # START bootstrap for scl with priority 15 + $KOJI add-external-repo --tag=$R_SIG-$TAG-build sclo7-bootstrap + # END bootstrap for scl + # Other repo can be added here if needed in the future + fi + # END bootstrap $KOJI add-group $R_SIG-$TAG-build build $KOJI add-group $R_SIG-$TAG-build srpm-build # Add -build to the buildroot if collection enabled