[pkg-perl-tools] 02/03: examples/check-build: update reprotest(1) invocation to 0.7
gregor herrmann
gregoa at debian.org
Wed Sep 20 18:49:40 UTC 2017
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository pkg-perl-tools.
commit dc020916aa01a0b685bab80079019c996143a865
Author: gregor herrmann <gregoa at debian.org>
Date: Wed Sep 20 20:45:47 2017 +0200
examples/check-build: update reprotest(1) invocation to 0.7
while maintaining backwards compatibility.
---
examples/check-build | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/examples/check-build b/examples/check-build
index e98e70d..5ce2331 100755
--- a/examples/check-build
+++ b/examples/check-build
@@ -91,7 +91,13 @@ if [ "$REPRO" = "y" ]; then
REPROTEST_VIRT_SERVER_ARGS=default
fi
if [ -n "$REPROTEST_VIRT_SERVER" ]; then
- env -u TMPDIR -- reprotest --dont-vary build_path auto . -- $REPROTEST_VIRT_SERVER $REPROTEST_VIRT_SERVER_ARGS 2>&1 | \
+ REPROTESTVERSION=$(dpkg-query -f '${Version}\n' -W reprotest)
+ if dpkg --compare-versions "$REPROTESTVERSION" ge 0.7 ; then
+ REPROTESTPARAMS="--variations=+all,-build_path,-user_group --verbosity 1 . "
+ else
+ REPROTESTPARAMS="--dont-vary build_path auto --verbosity 1 . "
+ fi
+ env -u TMPDIR -- reprotest $REPROTESTPARAMS -- $REPROTEST_VIRT_SERVER $REPROTEST_VIRT_SERVER_ARGS 2>&1 | \
tee $REPROTESTLOG
else
echo "W: Could not find reprotest virtualization server."
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git
More information about the Pkg-perl-cvs-commits
mailing list