From 39dcb13824e170fde82426421a259d9eb7752faa Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sat, 18 Mar 2017 19:12:28 +0000 Subject: diffoscope_distribution_test.sh: Prefer experimental over unstable/sid when calculating "diffoscope in Debian" version. Signed-off-by: Chris Lamb Signed-off-by: Holger Levsen --- bin/diffoscope_distribution_test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/diffoscope_distribution_test.sh b/bin/diffoscope_distribution_test.sh index a5808bec..6a27a087 100755 --- a/bin/diffoscope_distribution_test.sh +++ b/bin/diffoscope_distribution_test.sh @@ -67,7 +67,14 @@ check_whohas() { # # main # -DIFFOSCOPE_IN_DEBIAN=$(rmadison diffoscope|egrep '(unstable|sid)'| awk '{print $3}' || true) +for SUITE in 'experimental' 'unstable|sid' +do + DIFFOSCOPE_IN_DEBIAN=$(rmadison diffoscope|egrep "${SUITE}"| awk '{print $3}' || true) + + if [ "$DIFFOSCOPE_IN_DEBIAN" != "" ] ; then + break + fi +done case $1 in PyPI) check_pypi -- cgit v1.2.3-70-g09d2