From 78962c085b1d2588c91bb2be4c63907a19615cb1 Mon Sep 17 00:00:00 2001 From: Peter Alfredsen Date: Sat, 28 Jun 2008 11:35:00 +0000 Subject: Revision bump to update patchset with newest fixes from Josef Drexler. (Portage version: 2.2_rc1/cvs/Linux 2.6.25.8 i686) --- .../rtorrent/files/rtorrent-0.8.2-fix_conn_type_seed.patch | 13 +++++++++++++ net-p2p/rtorrent/files/rtorrent-0.8.2-fix_load_cache.patch | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 net-p2p/rtorrent/files/rtorrent-0.8.2-fix_conn_type_seed.patch create mode 100644 net-p2p/rtorrent/files/rtorrent-0.8.2-fix_load_cache.patch (limited to 'net-p2p/rtorrent/files') diff --git a/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_conn_type_seed.patch b/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_conn_type_seed.patch new file mode 100644 index 000000000000..6b050f8b5766 --- /dev/null +++ b/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_conn_type_seed.patch @@ -0,0 +1,13 @@ +Index: rtorrent/src/core/download_list.cc +=================================================================== +--- rtorrent/src/core/download_list.cc (revision 1060) ++++ rtorrent/src/core/download_list.cc (working copy) +@@ -399,7 +399,7 @@ + rpc::call_command("d.set_state_counter", rpc::call_command_value("d.get_state_counter", rpc::make_target(download)), rpc::make_target(download)); + + // If initial seeding is complete, don't try it again when restarting. +- if (download->is_done()) ++ if (download->is_done() && rpc::call_command_void("d.get_connection_current", rpc::make_target(download)).as_string() == "initial_seed") + rpc::call_command("d.set_connection_seed", rpc::call_command_void("d.get_connection_current", rpc::make_target(download)), rpc::make_target(download)); + + // Save the state after all the slots, etc have been called so we diff --git a/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_load_cache.patch b/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_load_cache.patch new file mode 100644 index 000000000000..3d37ca47e5e8 --- /dev/null +++ b/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_load_cache.patch @@ -0,0 +1,14 @@ +Index: rtorrent/src/core/manager.cc +=================================================================== +--- rtorrent/src/core/manager.cc (revision 1060) ++++ rtorrent/src/core/manager.cc (working copy) +@@ -383,7 +383,8 @@ + void + Manager::try_create_download(const std::string& uri, int flags, const command_list_type& commands) { + // If the path was attempted loaded before, skip it. +- if (!(flags & create_raw_data) && ++ if ((flags & create_tied) && ++ !(flags & create_raw_data) && + !is_network_uri(uri) && + !file_status_cache()->insert(uri, 0)) + return; -- cgit v1.2.3-65-gdbad