Package: devscripts
Version: 2.15.4
Severity: normal
File: /usr/bin/uscan
Tags: patch

Hi,

http{,s}://pypi.python.org/packages/foo/F/foo links no longer work.

We now have a redirector (http://pypi.debian.net) and watch file
generator (http://pypi.debian.net/foo/watch) but updating thousands of
packages is not that easy. We'll get to it at some point, but please
consider applying attached patch which will give maintainers some more
time to update.
Please note that this change doesn't touch
https://pypi.python.org/pypi/foo/ watch files (as these still work fine)
From f5269c40f5e14481aa3098fac96260c11fa975e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <pi...@debian.org>
Date: Tue, 19 May 2015 21:17:50 +0200
Subject: [PATCH] uscan: use pypi.debian.net redirector instead of
 pypi.python.org

---
 scripts/uscan.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index 841f8b5..441e73e 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -882,6 +882,9 @@ sub process_watchline ($$$$$$)
 	    $base =~ s%^http://sf\.net/%https://qa.debian.org/watch/sf.php/%;
 	    $filepattern .= '(?:\?.*)?';
 	}
+	# Handle pypi.python.org addresses specially
+	$base =~ s%^https?://pypi\.python\.org/packages/source/./%http://pypi.debian.net/%;
+
 	if ($base =~ m%^(\w+://[^/]+)%) {
 	    $site = $1;
 	} else {
-- 
2.1.4

Attachment: signature.asc
Description: Digital signature

Reply via email to