diff options
Diffstat (limited to 'bin/reproducible_setup_mock.sh')
-rwxr-xr-x | bin/reproducible_setup_mock.sh | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/bin/reproducible_setup_mock.sh b/bin/reproducible_setup_mock.sh index 240b693d..c39e901e 100755 --- a/bin/reproducible_setup_mock.sh +++ b/bin/reproducible_setup_mock.sh @@ -17,8 +17,6 @@ if [ -z "$1" ] || [ -z "$2" ] ; then fi RELEASE=$1 ARCH=$2 -# not used yet: -UNIQEEXT="mock_${JOB_NAME#reproducible_builder_${RELEASE}_$ARCH}}" echo "$(date -u) - showing setup." dpkg -l mock @@ -30,17 +28,21 @@ yum -v --releasever=23 clean all echo "$(date -u) - initialising yum for $RELEASE" yum -v --releasever=23 check yum -v --releasever=23 repolist all -echo "$(date -u) - starting to cleanly configure mock for $RELEASE on $ARCH." -echo "$(date -u) - mock --clean" -mock -r $RELEASE-$ARCH --resultdir=. -v --clean -echo "$(date -u) - mock --scrub=all" -mock -r $RELEASE-$ARCH --resultdir=. -v --scrub=all -tree /var/cache/mock/ -echo "$(date -u) - mock --init" -mock -r $RELEASE-$ARCH --resultdir=. -v --init -echo "$(date -u) - mock configured for $RELEASE on $ARCH." -echo "$(date -u) - mock --install rpm-build yum" -mock -r $RELEASE-$ARCH --resultdir=. -v --install rpm-build yum -echo "$(date -u) - mock --update" -mock -r $RELEASE-$ARCH --resultdir=. -v --update +for i in 1 2 ; do + UNIQEEXT="mock_$i" + echo "$(date -u) - starting to cleanly configure mock for $RELEASE on $ARCH using unique extension $UNIQEEXT." + echo "$(date -u) - mock --clean" + mock -r $RELEASE-$ARCH --uniqeext=$UNIQEEXT --resultdir=. -v --clean + echo "$(date -u) - mock --scrub=all" + mock -r $RELEASE-$ARCH --uniqeext=$UNIQEEXT --resultdir=. -v --scrub=all + echo "$(date -u) - mock --init" + mock -r $RELEASE-$ARCH --uniqeext=$UNIQEEXT --resultdir=. -v --init + echo "$(date -u) - mock --install rpm-build yum" + mock -r $RELEASE-$ARCH --uniqeext=$UNIQEEXT --resultdir=. -v --install rpm-build yum + echo "$(date -u) - mock --update" + mock -r $RELEASE-$ARCH --uniqeext=$UNIQEEXT --resultdir=. -v --update +done + +# finally +echo "$(date -u) - mock configured for $RELEASE on $ARCH." |