Gentoo Archives: gentoo-commits

From: "Peter Alfredsen (loki_val)" <loki_val@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/rtorrent/files: rtorrent-0.8.2-fix_conn_type_seed.patch rtorrent-0.8.2-fix_load_cache.patch
Date: Sat, 28 Jun 2008 11:35:06
Message-Id: E1KCYhp-0001zE-J8@stork.gentoo.org
1 loki_val 08/06/28 11:35:01
2
3 Added: rtorrent-0.8.2-fix_conn_type_seed.patch
4 rtorrent-0.8.2-fix_load_cache.patch
5 Log:
6 Revision bump to update patchset with newest fixes from Josef Drexler.
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.25.8 i686)
8
9 Revision Changes Path
10 1.1 net-p2p/rtorrent/files/rtorrent-0.8.2-fix_conn_type_seed.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_conn_type_seed.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_conn_type_seed.patch?rev=1.1&content-type=text/plain
14
15 Index: rtorrent-0.8.2-fix_conn_type_seed.patch
16 ===================================================================
17 Index: rtorrent/src/core/download_list.cc
18 ===================================================================
19 --- rtorrent/src/core/download_list.cc (revision 1060)
20 +++ rtorrent/src/core/download_list.cc (working copy)
21 @@ -399,7 +399,7 @@
22 rpc::call_command("d.set_state_counter", rpc::call_command_value("d.get_state_counter", rpc::make_target(download)), rpc::make_target(download));
23
24 // If initial seeding is complete, don't try it again when restarting.
25 - if (download->is_done())
26 + if (download->is_done() && rpc::call_command_void("d.get_connection_current", rpc::make_target(download)).as_string() == "initial_seed")
27 rpc::call_command("d.set_connection_seed", rpc::call_command_void("d.get_connection_current", rpc::make_target(download)), rpc::make_target(download));
28
29 // Save the state after all the slots, etc have been called so we
30
31
32
33 1.1 net-p2p/rtorrent/files/rtorrent-0.8.2-fix_load_cache.patch
34
35 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_load_cache.patch?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_load_cache.patch?rev=1.1&content-type=text/plain
37
38 Index: rtorrent-0.8.2-fix_load_cache.patch
39 ===================================================================
40 Index: rtorrent/src/core/manager.cc
41 ===================================================================
42 --- rtorrent/src/core/manager.cc (revision 1060)
43 +++ rtorrent/src/core/manager.cc (working copy)
44 @@ -383,7 +383,8 @@
45 void
46 Manager::try_create_download(const std::string& uri, int flags, const command_list_type& commands) {
47 // If the path was attempted loaded before, skip it.
48 - if (!(flags & create_raw_data) &&
49 + if ((flags & create_tied) &&
50 + !(flags & create_raw_data) &&
51 !is_network_uri(uri) &&
52 !file_status_cache()->insert(uri, 0))
53 return;
54
55
56
57 --
58 gentoo-commits@l.g.o mailing list