svn commit: r459259 - in head/ports-mgmt/fastest_sites: . files
Tobias Kortkamp
tobik at FreeBSD.org
Wed Jan 17 14:29:17 UTC 2018
Author: tobik
Date: Wed Jan 17 14:29:16 2018
New Revision: 459259
URL: https://svnweb.freebsd.org/changeset/ports/459259
Log:
ports-mgmt/fastest_sites: Fix runtime with modern bsd.sites.mk
fastest_sites currently can't parse entries like
https://archives.fedoraproject.org/pub/archive/fedora/linux/%SUBDIR%/:DEFAULT,SOURCE
=> Checking servers for MASTER_SITE_FEDORA_LINUX (6 servers)
Traceback (most recent call last):
File "/usr/local/bin/fastest_sites", line 164, in <module>
latency_list = FindFastest(varname, sitelist)
File "/usr/local/bin/fastest_sites", line 110, in FindFastest
AsyncConnect(url, callback)
File "/usr/local/bin/fastest_sites", line 53, in __init__
self.ParseURL()
File "/usr/local/bin/fastest_sites", line 64, in ParseURL
(scheme, remainder) = self._url.split(":", 2)
ValueError: too many values to unpack
PR: 224854
Added:
head/ports-mgmt/fastest_sites/files/
head/ports-mgmt/fastest_sites/files/patch-fastest__sites-20110317.py (contents, props changed)
Modified:
head/ports-mgmt/fastest_sites/Makefile
Modified: head/ports-mgmt/fastest_sites/Makefile
==============================================================================
--- head/ports-mgmt/fastest_sites/Makefile Wed Jan 17 14:28:32 2018 (r459258)
+++ head/ports-mgmt/fastest_sites/Makefile Wed Jan 17 14:29:16 2018 (r459259)
@@ -2,7 +2,7 @@
PORTNAME= fastest_sites
PORTVERSION= 20110317
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= ports-mgmt
MASTER_SITES= http://www.semicomplete.com/files/fastest_sites/
EXTRACT_SUFX= .py
Added: head/ports-mgmt/fastest_sites/files/patch-fastest__sites-20110317.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/fastest_sites/files/patch-fastest__sites-20110317.py Wed Jan 17 14:29:16 2018 (r459259)
@@ -0,0 +1,11 @@
+--- fastest_sites-20110317.py.orig 2018-01-03 06:06:26 UTC
++++ fastest_sites-20110317.py
+@@ -61,7 +61,7 @@ class AsyncConnect(asyncore.dispatcher):
+
+ def ParseURL(self):
+ #print "Url: %s" % self._url
+- (scheme, remainder) = self._url.split(":", 2)
++ (scheme, remainder) = self._url.split(":", 1)
+ (host, unused_path) = urllib.splithost(remainder)
+ self._host = host
+ self._port = AsyncConnect.schemes[scheme.lower()]
More information about the svn-ports-all
mailing list