Commit 119d2233 authored by Chris Lamb's avatar Chris Lamb 💬 Committed by Mattia Rizzolo

reproducible Debian: Correct parsing of diffoscope version since recent update of PyPI.org

Closes: #895951
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent af47509f
......@@ -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@.*diffoscope \([0-9][0-9]*\).*@\1@gp' $TMPPYPI)
rm -f $TMPPYPI > /dev/null
echo
echo
......
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