summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_setup_mock.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-07 20:40:14 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-07 20:40:14 +0100
commit53f02787c24428a4176896b1c8f3bf41ae67d68f (patch)
treee8899786f5199cb833d08f2108bc50b2557e3ae0 /bin/reproducible_setup_mock.sh
parentece2032911c5668cf137cf43e3abbaad4e75209a (diff)
downloadjenkins.debian.net-53f02787c24428a4176896b1c8f3bf41ae67d68f.tar.xz
reproducible rpms: configure mock nicely
Diffstat (limited to 'bin/reproducible_setup_mock.sh')
-rwxr-xr-xbin/reproducible_setup_mock.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/reproducible_setup_mock.sh b/bin/reproducible_setup_mock.sh
index 2385693d..37d2b21d 100755
--- a/bin/reproducible_setup_mock.sh
+++ b/bin/reproducible_setup_mock.sh
@@ -18,6 +18,12 @@ fi
DISTRO=$1
ARCHITECTURE=$2
-echo "$(date -u) - starting to configure mock for ${DISTRO} on ${ARCHITECTURE} now."
-mock -r ${DISTRO}-${ARCHITECTURE} --init
-echo "$(date -u) - mock configured for ${DISTRO} on ${ARCHITECTURE} now."
+echo "$(date -u) - showing setup."
+dpkg -l mock
+id
+echo "$(date -u) - starting to cleanly configure mock for ${DISTRO} on ${ARCHITECTURE}."
+set -x
+mock -r ${DISTRO}-${ARCHITECTURE} --resultdir=. --clean
+mock -r ${DISTRO}-${ARCHITECTURE} --resultdir=. --init
+set +x
+echo "$(date -u) - mock configured for ${DISTRO} on ${ARCHITECTURE}."