Commit d4d8adf1 authored by Holger Levsen's avatar Holger Levsen

reproducible: diffoscope distribution test: fix detection of version number in Arch Linux

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 7b0ddd60
...@@ -68,7 +68,12 @@ check_github_macports() { ...@@ -68,7 +68,12 @@ check_github_macports() {
check_whohas() { check_whohas() {
# the following is "broken" (but good enough for now) # the following is "broken" (but good enough for now)
# as sort doesn't do proper version comparison # as sort doesn't do proper version comparison
DIFFOSCOPE_IN_WHOHAS=$(whohas -d $DISTRIBUTION diffoscope | grep -v "href=" | awk '{print $3}' | sort -n | tail -1) case $DISTRIBUTION in
Arch) DIFFOSCOPE_IN_WHOHAS=$(whohas -d $DISTRIBUTION diffoscope | grep -v "href=" | awk '{print $2}' | cut -d '>' -f2 | cut -d '<' -f1 | sort -n | tail -1)
;;
*) DIFFOSCOPE_IN_WHOHAS=$(whohas -d $DISTRIBUTION diffoscope | grep -v "href=" | awk '{print $3}' | sort -n | tail -1)
;;
esac
echo echo
echo echo
if [ "$DIFFOSCOPE_IN_DEBIAN" = "$DIFFOSCOPE_IN_WHOHAS" ] ; then if [ "$DIFFOSCOPE_IN_DEBIAN" = "$DIFFOSCOPE_IN_WHOHAS" ] ; then
......
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