From 79d5a13ccb3ca388f03459a79453a0fb737d7e8f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 8 Jan 2017 14:18:33 +0100 Subject: reproducible: refactor and turn understood issues into warnings Signed-off-by: Holger Levsen --- bin/diffoscope_distribution_test.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/diffoscope_distribution_test.sh b/bin/diffoscope_distribution_test.sh index aad2c490..073d59bb 100755 --- a/bin/diffoscope_distribution_test.sh +++ b/bin/diffoscope_distribution_test.sh @@ -23,8 +23,10 @@ check_pypi() { elif dpkg --compare-versions "$DIFFOSCOPE_IN_DEBIAN" gt "$DIFFOSCOPE_IN_PYPI" ; then echo "Fail: diffoscope in Debian: $DIFFOSCOPE_IN_DEBIAN" echo "Fail: diffoscope in PyPI: $DIFFOSCOPE_IN_PYPI" - irc_message debian-reproducible "It seems diffoscope $DIFFOSCOPE_IN_DEBIAN is not available on PyPI, which only has $DIFFOSCOPE_IN_PYPI." - exit 1 + WARNING="It seems diffoscope $DIFFOSCOPE_IN_DEBIAN is not available on PyPI, which only has $DIFFOSCOPE_IN_PYPI." + irc_message debian-reproducible "$WARNING" + echo "Warning: $WARNING" + exit 0 else echo "diffoscope in Debian: $DIFFOSCOPE_IN_DEBIAN" echo "diffoscope in PyPI: $DIFFOSCOPE_IN_PYPI" @@ -45,8 +47,10 @@ check_whohas() { elif dpkg --compare-versions "$DIFFOSCOPE_IN_DEBIAN" gt "$DIFFOSCOPE_IN_WHOHAS" ; then echo "Fail: diffoscope in Debian: $DIFFOSCOPE_IN_DEBIAN" echo "Fail: diffoscope in $DISTRIBUTION: $DIFFOSCOPE_IN_WHOHAS" - irc_message debian-reproducible "It seems diffoscope $DIFFOSCOPE_IN_DEBIAN is not available in $DISTRIBUTION, which only has $DIFFOSCOPE_IN_WHOHAS." - exit 1 + WARNING="It seems diffoscope $DIFFOSCOPE_IN_DEBIAN is not available in $DISTRIBUTION, which only has $DIFFOSCOPE_IN_WHOHAS." + irc_message debian-reproducible "$WARNING" + echo "Warning: $WARNING" + exit 0 else # FIXME: archlinux package version will be greater than Debian: 52-1 vs 52 echo "diffoscope in Debian: $DIFFOSCOPE_IN_DEBIAN" -- cgit v1.2.3-70-g09d2