From: | "Patrick Lauer (patrick)" <patrick@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-libs/libtorrent/files: download_constructor.diff |
Date: | Sun, 03 Apr 2011 16:04:29 |
Message-Id: | 20110403160420.BBAED20057@flycatcher.gentoo.org |
1 | patrick 11/04/03 16:04:20 |
2 | |
3 | Added: download_constructor.diff |
4 | Log: |
5 | Bump, fix for upstream issue #2505 included |
6 | |
7 | (Portage version: 2.2.0_alpha29/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-libs/libtorrent/files/download_constructor.diff |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libtorrent/files/download_constructor.diff?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libtorrent/files/download_constructor.diff?rev=1.1&content-type=text/plain |
14 | |
15 | Index: download_constructor.diff |
16 | =================================================================== |
17 | --- src/download/download_constructor.cc 2011-03-08 17:48:43.000000000 +0300 |
18 | +++ src/download/download_constructor.cc.new 2011-03-08 17:36:42.000000000 +0300 |
19 | @@ -97,7 +97,17 @@ |
20 | |
21 | parse_name(b.get_key("info")); |
22 | parse_info(b.get_key("info")); |
23 | - |
24 | + |
25 | + // hack, quick fix for #2505 |
26 | + if (b.has_key_list("announce-list")) |
27 | + if (b.get_key_list("announce-list").empty()) { |
28 | + b.erase_key("announce-list"); |
29 | + } else { |
30 | + Object::list_type & l = b.get_key_list("announce-list"); |
31 | + if (l.size() == 1 && !l.begin()->is_list()) { |
32 | + b.erase_key("announce-list"); |
33 | + } |
34 | + } |
35 | parse_tracker(b); |
36 | } |