From owner-svn-ports-all@FreeBSD.ORG Tue Mar 10 17:28:26 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0632BE32; Tue, 10 Mar 2015 17:28:26 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBB56CC; Tue, 10 Mar 2015 17:28:25 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2AHSPpw037743; Tue, 10 Mar 2015 17:28:25 GMT (envelope-from rm@FreeBSD.org) Received: (from rm@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2AHSPtg037741; Tue, 10 Mar 2015 17:28:25 GMT (envelope-from rm@FreeBSD.org) Message-Id: <201503101728.t2AHSPtg037741@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: rm set sender to rm@FreeBSD.org using -f From: Ruslan Makhmatkhanov Date: Tue, 10 Mar 2015 17:28:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r380945 - in head/net-p2p/deluge: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2015 17:28:26 -0000 Author: rm Date: Tue Mar 10 17:28:24 2015 New Revision: 380945 URL: https://svnweb.freebsd.org/changeset/ports/380945 QAT: https://qat.redports.org/buildarchive/r380945/ Log: net-p2p/deluge: fix blocklist plugin Add upstream patch to fix blocklist plugin with version of Twisted that's now in ports tree. Upstream bug report: http://dev.deluge-torrent.org/ticket/2737 PR: 198332 Reported by: Chris Ross Added: head/net-p2p/deluge/files/patch-deluge_httpdownloader.py (contents, props changed) Modified: head/net-p2p/deluge/Makefile Modified: head/net-p2p/deluge/Makefile ============================================================================== --- head/net-p2p/deluge/Makefile Tue Mar 10 17:17:26 2015 (r380944) +++ head/net-p2p/deluge/Makefile Tue Mar 10 17:28:24 2015 (r380945) @@ -2,7 +2,7 @@ PORTNAME= deluge PORTVERSION= 1.3.11 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= net-p2p python MASTER_SITES= http://download.deluge-torrent.org/source/ Added: head/net-p2p/deluge/files/patch-deluge_httpdownloader.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/deluge/files/patch-deluge_httpdownloader.py Tue Mar 10 17:28:24 2015 (r380945) @@ -0,0 +1,44 @@ +This patch is fixing new blocklist plugin incompatibility with newer +versions of Twisted. The fix will be included in deluge 1.3.12. + +References: + * bug-report: http://dev.deluge-torrent.org/ticket/2737 + * commit: http://dev.deluge-torrent.org/changeset/d40dfcd53c243 + +Index: deluge/httpdownloader.py +=================================================================== +--- deluge/httpdownloader.py (revision 8bf18d6694db24e04cb65f20f2e219ec14043f8e) ++++ deluge/httpdownloader.py (revision d40dfcd53c2439de121ddaff476e66194dc2c738) +@@ -147,5 +147,5 @@ + # Only use the basename + filename = os.path.basename(filename) +- ++ + filename = filename.strip() + if filename.startswith(".") or ";" in filename or "|" in filename: +@@ -193,15 +193,20 @@ + headers["accept-encoding"] = "deflate, gzip, x-gzip" + +- # In twisted 13.1.0 the _parse() function was replaced by the _URI class +- if hasattr(client, '_parse'): ++ # In Twisted 13.1.0 _parse() function replaced by _URI class. ++ # In Twisted 15.0.0 _URI class renamed to URI. ++ if hasattr(client, "_parse"): + scheme, host, port, path = client._parse(url) + else: +- from twisted.web.client import _URI +- uri = _URI.fromBytes(url) ++ try: ++ from twisted.web.client import _URI as URI ++ except ImportError: ++ from twisted.web.client import URI ++ ++ uri = URI.fromBytes(url) + scheme = uri.scheme + host = uri.host + port = uri.port + path = uri.path +- ++ + factory = HTTPDownloader(url, filename, callback, headers, force_filename, allow_compression) + if scheme == "https":