From bc13c639504599e8115763e14d3fc8e19e38c865 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sat, 26 Mar 2016 17:59:14 +0100 Subject: diffoscopy_pypi_test: improve version number extraction --- bin/diffoscope_pypi_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/diffoscope_pypi_test.sh') diff --git a/bin/diffoscope_pypi_test.sh b/bin/diffoscope_pypi_test.sh index 675283c1..d2fa0c82 100755 --- a/bin/diffoscope_pypi_test.sh +++ b/bin/diffoscope_pypi_test.sh @@ -17,7 +17,7 @@ cleanup_all() { TMPPYPI=$(mktemp -t diffoscope-pypi-XXXXXXXX) trap cleanup_all INT TERM EXIT -DIFFOSCOPE_IN_DEBIAN=$(rmadison diffoscope|egrep '(unstable|sid)'| cut -d "|" -f2 || true) +DIFFOSCOPE_IN_DEBIAN=$(rmadison diffoscope|egrep '(unstable|sid)'| awk '{print $3}' || true) curl https://pypi.python.org/pypi/diffoscope/ -o $TMPPYPI DIFFOSCOPE_IN_PYPI=$(grep "" $TMPPYPI | cut -d ">" -f2- | cut -d ":" -f1 |cut -d " " -f2) echo -- cgit v1.2.3-70-g09d2