diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | ps-close_lowdisk_normal_all.patch | 28 |
3 files changed, 35 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = rtorrent-ps pkgdesc = Extended rTorrent distribution with UI enhancements, colorization, and some added features - pkgver = 1.1.r43.g8be91ab + pkgver = 1.1.r54.ga787dd9 pkgrel = 1 url = https://github.com/pyroscope/rtorrent-ps arch = any @@ -14,6 +14,7 @@ pkgbase = rtorrent-ps source = https://github.com/rakshasa/rtorrent/archive/v0.9.6.tar.gz source = backport_0.9.6_algorithm_median.patch source = command_pyroscope.cc + source = ps-close_lowdisk_normal_all.patch source = ps-dl-ui-find_all.patch source = ps-event-view_all.patch source = ps-fix-double-slash-319_all.patch @@ -42,6 +43,7 @@ pkgbase = rtorrent-ps md5sums = b8b4009f95f8543244ae1d23b1810d7c md5sums = b49903d3fa25a66c72db69570dfe8b47 md5sums = 9e1b37fc7e5423245d7d07ece0590fd5 + md5sums = 5680c3d167dd3aaa87cd80437b50b4fe md5sums = 27e2b4099fa2b943812d80d9306dab79 md5sums = fbe511a1dfe89fe0510a077e61ae6ec7 md5sums = 22fae392c6e281dc438b39a5019e7e1b @@ -1,9 +1,9 @@ -# Maintainer: xsmile <sascha_r gmx de> +# Maintainer: xsmile <> _pkgname=rtorrent pkgname=rtorrent-ps _pkgver=0.9.6 -pkgver=1.1.r43.g8be91ab +pkgver=1.1.r54.ga787dd9 pkgrel=1 pkgdesc='Extended rTorrent distribution with UI enhancements, colorization, and some added features' url='https://github.com/pyroscope/rtorrent-ps' @@ -15,6 +15,7 @@ conflicts=('rtorrent') source=("https://github.com/rakshasa/$_pkgname/archive/v$_pkgver.tar.gz" 'backport_0.9.6_algorithm_median.patch' 'command_pyroscope.cc' + 'ps-close_lowdisk_normal_all.patch' 'ps-dl-ui-find_all.patch' 'ps-event-view_all.patch' 'ps-fix-double-slash-319_all.patch' @@ -43,6 +44,7 @@ source=("https://github.com/rakshasa/$_pkgname/archive/v$_pkgver.tar.gz" md5sums=('b8b4009f95f8543244ae1d23b1810d7c' 'b49903d3fa25a66c72db69570dfe8b47' '9e1b37fc7e5423245d7d07ece0590fd5' + '5680c3d167dd3aaa87cd80437b50b4fe' '27e2b4099fa2b943812d80d9306dab79' 'fbe511a1dfe89fe0510a077e61ae6ec7' '22fae392c6e281dc438b39a5019e7e1b' diff --git a/ps-close_lowdisk_normal_all.patch b/ps-close_lowdisk_normal_all.patch new file mode 100644 index 000000000000..3a7f55f41478 --- /dev/null +++ b/ps-close_lowdisk_normal_all.patch @@ -0,0 +1,28 @@ +--- a/src/command_events.cc ++++ b/src/command_events.cc +@@ -216,7 +216,7 @@ void apply_import(const std::string& path) { if (!rpc::parse_command_file(pa + void apply_try_import(const std::string& path) { if (!rpc::parse_command_file(path)) control->core()->push_log_std("Could not read resource file: " + path); } + + torrent::Object +-apply_close_low_diskspace(int64_t arg) { ++apply_close_low_diskspace(int64_t arg, uint32_t skip_prio) { + core::DownloadList* downloadList = control->core()->download_list(); + + bool closed = false; +@@ -224,7 +224,7 @@ apply_close_low_diskspace(int64_t arg) { + + while ((itr = std::find_if(itr, downloadList->end(), std::mem_fun(&core::Download::is_downloading))) + != downloadList->end()) { +- if ((*itr)->file_list()->free_diskspace() < (uint64_t)arg) { ++ if ((*itr)->priority() < skip_prio && (*itr)->file_list()->free_diskspace() < (uint64_t)arg) { + downloadList->close(*itr); + + (*itr)->set_hash_failed(true); +@@ -391,5 +391,6 @@ initialize_command_events() { + core::Manager::create_quiet | core::Manager::create_start | core::Manager::create_raw_data)); + +- CMD2_ANY_VALUE ("close_low_diskspace", tr1::bind(&apply_close_low_diskspace, tr1::placeholders::_2)); ++ CMD2_ANY_VALUE ("close_low_diskspace", tr1::bind(&apply_close_low_diskspace, tr1::placeholders::_2, 99)); ++ CMD2_ANY_VALUE ("close_low_diskspace.normal", tr1::bind(&apply_close_low_diskspace, tr1::placeholders::_2, 3)); + + CMD2_ANY_LIST ("download_list", tr1::bind(&apply_download_list, tr1::placeholders::_2)); |