[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: Correct parsing of diffoscope version since recent update of PyPI.org

Mattia Rizzolo gitlab at salsa.debian.org
Wed Apr 18 07:30:38 BST 2018


Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
119d2233 by Chris Lamb at 2018-04-18T08:30:27+02:00
reproducible Debian: Correct parsing of diffoscope version since recent update of PyPI.org

Closes: #895951
Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- bin/diffoscope_distribution_test.sh


Changes:

=====================================
bin/diffoscope_distribution_test.sh
=====================================
--- a/bin/diffoscope_distribution_test.sh
+++ b/bin/diffoscope_distribution_test.sh
@@ -19,8 +19,8 @@ send_irc_warning() {
 check_pypi() {
 	TMPPYPI=$(mktemp -t diffoscope-distribution-XXXXXXXX)
 	# the following two lines are a bit fragileā€¦
-	curl https://pypi.python.org/pypi/diffoscope/ -o $TMPPYPI
-	DIFFOSCOPE_IN_PYPI=$(grep "<title>" $TMPPYPI | cut -d ">" -f2- | cut -d ":" -f1 |cut -d " " -f2)
+	curl https://pypi.org/project/diffoscope/ -o $TMPPYPI
+	DIFFOSCOPE_IN_PYPI=$(sed -ne 's at .*diffoscope \([0-9][0-9]*\).*@\1 at gp' $TMPPYPI)
 	rm -f $TMPPYPI > /dev/null
 	echo
 	echo



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/119d223379e3d4cf97ca1b7053523a539606dd8c

---
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/119d223379e3d4cf97ca1b7053523a539606dd8c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180418/7b3b3767/attachment.html>


More information about the Qa-jenkins-scm mailing list