rpms/qbittorrent/F-12 disable_peer_host_name_resolution.patch, NONE, 1.1 qbittorrent.spec, 1.68, 1.69

Leigh Scott leigh123linux at fedoraproject.org
Mon Mar 29 11:44:43 UTC 2010


Author: leigh123linux

Update of /cvs/pkgs/rpms/qbittorrent/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv4280

Modified Files:
	qbittorrent.spec 
Added Files:
	disable_peer_host_name_resolution.patch 
Log Message:
* Mon Mar 29 2010 leigh scott <leigh123linux at googlemail.com> - 2.2.2-2
- add patch to disable peer host name resolution (bz577723)


disable_peer_host_name_resolution.patch:
 reverseresolution.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- NEW FILE disable_peer_host_name_resolution.patch ---
--- qbittorrent-2.2.2.orig/src/reverseresolution.h	(revision 3621)
+++ qbittorrent-2.2.2/src/reverseresolution.h	(working copy)
@@ -84,8 +84,9 @@ 
       if(stopped) return;
       libtorrent::asio::ip::tcp::endpoint endpoint = *it;
       emit ip_resolved(misc::toQString(endpoint.address().to_string()), misc::toQString((*it).host_name()));
-    } catch(std::exception &e) {
-      std::cerr << "Hostname resolution failed, reason: " << e.what() << std::endl;
+    } catch(std::exception/* &e*/) {
+      /*std::cerr << "Hostname resolution failed, reason: " << e.what() << std::endl;*/
+      std::cerr << "Hostname resolution error." << std::endl;
     }
   }
 };


Index: qbittorrent.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qbittorrent/F-12/qbittorrent.spec,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -p -r1.68 -r1.69
--- qbittorrent.spec	22 Mar 2010 21:30:35 -0000	1.68
+++ qbittorrent.spec	29 Mar 2010 11:44:43 -0000	1.69
@@ -3,7 +3,7 @@
 Name:    qbittorrent
 Summary: A Bittorrent Client 
 Version: 2.2.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 # The source for this package was pulled from upstream's vcs.  Use the
 # following commands to generate the tarball:
 # svn checkout -r %{svn_rev} https://qbittorrent.svn.sourceforge.net/svnroot/qbittorrent/trunk qbittorrent
@@ -12,6 +12,7 @@ Release: 1%{?dist}
 #Source0:  %{name}-%{svn_rev}svn.tar.gz
 Source0: http://downloads.sf.net/qbittorrent/%{name}-%{version}.tar.gz
 Source1: qbittorrent-nox.README
+Patch0:  disable_peer_host_name_resolution.patch
 
 
 URL: http://sourceforge.net/projects/qbittorrent
@@ -43,6 +44,7 @@ It aims to be as fast as possible and to
 
 %prep
 %setup -q
+%patch0 -p1 -b .disable_peer_host_name_resolution
 cp -p %{SOURCE1} .
 
 %build
@@ -114,6 +116,9 @@ gtk-update-icon-cache %{_datadir}/icons/
 
 
 %changelog
+* Mon Mar 29 2010 leigh scott <leigh123linux at googlemail.com> - 2.2.2-2
+- add patch to disable peer host name resolution (bz577723)
+
 * Mon Mar 22 2010 leigh scott <leigh123linux at googlemail.com> - 2.2.2-1
 - update to 2.2.2
 



More information about the scm-commits mailing list