[Qa-jenkins-scm] [jenkins.debian.net] 01/01: diffoscopy_pypi_test: improve version number extraction
Holger Levsen
holger at moszumanska.debian.org
Sat Mar 26 16:59:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit bc13c639504599e8115763e14d3fc8e19e38c865
Author: Reiner Herrmann <reiner at reiner-h.de>
Date: Sat Mar 26 17:59:14 2016 +0100
diffoscopy_pypi_test: improve version number extraction
---
bin/diffoscope_pypi_test.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/diffoscope_pypi_test.sh b/bin/diffoscope_pypi_test.sh
index 675283c..d2fa0c8 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 "<title>" $TMPPYPI | cut -d ">" -f2- | cut -d ":" -f1 |cut -d " " -f2)
echo
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list