Commit 39dcb138 authored by Chris Lamb's avatar Chris Lamb 💬 Committed by Holger Levsen

diffoscope_distribution_test.sh: Prefer experimental over unstable/sid when...

diffoscope_distribution_test.sh: Prefer experimental over unstable/sid when calculating "diffoscope in Debian" version.
Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 931c57bd
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment