diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-01-08 14:18:33 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-01-08 14:18:33 +0100 |
commit | 79d5a13ccb3ca388f03459a79453a0fb737d7e8f (patch) | |
tree | 709b6f3e82c63a973e192585b22829a0266697d8 | |
parent | f30bf7288617d329baad1e2bac3f2a05d1a3fab3 (diff) | |
download | jenkins.debian.net-79d5a13ccb3ca388f03459a79453a0fb737d7e8f.tar.xz |
reproducible: refactor and turn understood issues into warnings
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/diffoscope_distribution_test.sh | 12 |
1 files changed, 8 insertions, 4 deletions
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" |