SOURCES: rtorrent-fix_conn_type_seed.patch (NEW), rtorrent-fix_load_cache.p...
adamg
adamg at pld-linux.org
Fri Jul 18 23:09:32 CEST 2008
Author: adamg Date: Fri Jul 18 21:09:32 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- new
---- Files affected:
SOURCES:
rtorrent-fix_conn_type_seed.patch (NONE -> 1.1) (NEW), rtorrent-fix_load_cache.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/rtorrent-fix_conn_type_seed.patch
diff -u /dev/null SOURCES/rtorrent-fix_conn_type_seed.patch:1.1
--- /dev/null Fri Jul 18 23:09:33 2008
+++ SOURCES/rtorrent-fix_conn_type_seed.patch Fri Jul 18 23:09:26 2008
@@ -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
================================================================
Index: SOURCES/rtorrent-fix_load_cache.patch
diff -u /dev/null SOURCES/rtorrent-fix_load_cache.patch:1.1
--- /dev/null Fri Jul 18 23:09:33 2008
+++ SOURCES/rtorrent-fix_load_cache.patch Fri Jul 18 23:09:27 2008
@@ -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;
================================================================
More information about the pld-cvs-commit
mailing list