summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_setup_mock.sh
diff options
context:
space:
mode:
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}."