23254586 source-download job doesn't work on pypi things anymore
authorDanek Duvall <danek.duvall@oracle.com>
Mon, 09 May 2016 19:47:00 -0700
changeset 5952 0ff1d1b8de45
parent 5949 eefd43fe9fc4
child 5953 de8c30ca3eaa
23254586 source-download job doesn't work on pypi things anymore
tools/userland-fetch
--- a/tools/userland-fetch	Mon May 09 17:12:48 2016 -0600
+++ b/tools/userland-fetch	Mon May 09 19:47:00 2016 -0700
@@ -246,7 +246,7 @@
 
 	urls = [ d["url"] for d in verblock ]
 	for archiveurl in urls:
-		if archiveurl.endswith("/%s" % filename):
+		if archiveurl.endswith("/%s" % os.path.basename(filename)):
 			return archiveurl
 
 	if urls: