diff options
author | Peter Alfredsen <loki_val@gentoo.org> | 2008-06-28 11:35:00 +0000 |
---|---|---|
committer | Peter Alfredsen <loki_val@gentoo.org> | 2008-06-28 11:35:00 +0000 |
commit | 78962c085b1d2588c91bb2be4c63907a19615cb1 (patch) | |
tree | eb085c565413bff5b90a0a4e7c18db312d50c2f5 /net-p2p/rtorrent/files | |
parent | version bump, removed old versions (diff) | |
download | gentoo-2-78962c085b1d2588c91bb2be4c63907a19615cb1.tar.gz gentoo-2-78962c085b1d2588c91bb2be4c63907a19615cb1.tar.bz2 gentoo-2-78962c085b1d2588c91bb2be4c63907a19615cb1.zip |
Revision bump to update patchset with newest fixes from Josef Drexler.
(Portage version: 2.2_rc1/cvs/Linux 2.6.25.8 i686)
Diffstat (limited to 'net-p2p/rtorrent/files')
-rw-r--r-- | net-p2p/rtorrent/files/rtorrent-0.8.2-fix_conn_type_seed.patch | 13 | ||||
-rw-r--r-- | net-p2p/rtorrent/files/rtorrent-0.8.2-fix_load_cache.patch | 14 |
2 files changed, 27 insertions, 0 deletions
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; |