summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_setup_mock.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/reproducible_setup_mock.sh b/bin/reproducible_setup_mock.sh
index 6559667f..efb2c473 100755
--- a/bin/reproducible_setup_mock.sh
+++ b/bin/reproducible_setup_mock.sh
@@ -4,7 +4,7 @@
# released under the GPLv=2
#
-# configures mock for a given distro and architecture
+# configure mock for a given release and architecture
#
DEBUG=false
@@ -12,16 +12,16 @@ DEBUG=false
common_init "$@"
if [ -z "$1" ] || [ -z "$2" ] ; then
- echo "Need distro and architecture as params"
+ echo "Need release and architecture as params."
exit 1
fi
-DISTRO=$1
-ARCHITECTURE=$2
+RELEASE=$1
+ARCH=$2
echo "$(date -u) - showing setup."
dpkg -l mock
id
-echo "$(date -u) - starting to cleanly configure mock for ${DISTRO} on ${ARCHITECTURE}."
-mock -r ${DISTRO}-${ARCHITECTURE} --clean
-mock -r ${DISTRO}-${ARCHITECTURE} --init
-echo "$(date -u) - mock configured for ${DISTRO} on ${ARCHITECTURE}."
+echo "$(date -u) - starting to cleanly configure mock for $RELEASE on $ARCH."
+mock -r $RELEASE-$ARCH --resultdir=. --clean
+mock -r $RELEASE-$ARCH --resultdir=. --init
+echo "$(date -u) - mock configured for $RELEASE on $ARCH."