* Don't skip the last line in rc files missing the final

newline. Patch by Jussi Judin under Public Domain.

* Added warnings on usage of scgi_port.

* Include a file's completed chunks count in the resume data.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@973 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-09-04 21:32:42 +00:00
parent 95516fe3b5
commit 48f13fb7a3
4 changed files with 21 additions and 9 deletions
+3 -3
View File
@@ -124,7 +124,7 @@ apply_start_tied() {
const std::string& tiedToFile = rpc::call_command_string("d.get_tied_to_file", rpc::make_target(*itr));
if (!tiedToFile.empty() && fs.update(rak::path_expand(tiedToFile)))
control->core()->download_list()->start_normal(*itr);
control->core()->download_list()->start_try(*itr);
}
return torrent::Object();
@@ -140,7 +140,7 @@ apply_stop_untied() {
const std::string& tiedToFile = rpc::call_command_string("d.get_tied_to_file", rpc::make_target(*itr));
if (!tiedToFile.empty() && !fs.update(rak::path_expand(tiedToFile)))
control->core()->download_list()->stop_normal(*itr);
control->core()->download_list()->stop_try(*itr);
}
return torrent::Object();
@@ -152,7 +152,7 @@ apply_close_untied() {
rak::file_stat fs;
const std::string& tiedToFile = rpc::call_command_string("d.get_tied_to_file", rpc::make_target(*itr));
if (!tiedToFile.empty() && !fs.update(rak::path_expand(tiedToFile)))
if (rpc::call_command_value("d.get_ignore_commands", rpc::make_target(*itr)) == 0 && !tiedToFile.empty() && !fs.update(rak::path_expand(tiedToFile)))
control->core()->download_list()->close(*itr);
}