Andrii Nikitin 2022-02-03 10:21:07 +00:00 committed by Git OBS Bridge
parent d26c5ebca6
commit f162efea95
2 changed files with 15 additions and 0 deletions

View File

@ -34,6 +34,7 @@ Source2: %{name}-user.conf
Source3: %{name}-tmpfilesd.conf
# use update-cache (or tools/generate-packed-assets) to generate/update cache.tar.xz
Source101: update-cache.sh
Patch1: pr253.patch
BuildRequires: %{build_requires}
Requires: %{main_requires}
Requires: perl(Minion) >= 10.0
@ -45,6 +46,7 @@ Mirror redirector web service, which automatically scans the main server and mir
%prep
%setup -q -a1
%patch1 -p1
%build
# make {?_smp_mflags}

13
pr253.patch Normal file
View File

@ -0,0 +1,13 @@
index f8f9e05..d69c158 100644
--- a/lib/MirrorCache/WebAPI/Plugin/Dir.pm
+++ b/lib/MirrorCache/WebAPI/Plugin/Dir.pm
@@ -117,7 +117,7 @@ sub render_dir_remote {
my $reftx = $tx;
};
- $c->minion->result_p($job_id)->timeout->($RENDER_DIR_REMOTE_PROMISE_TIMEOUT)->catch($handle_error)->then(sub {
+ $c->minion->result_p($job_id)->timeout($RENDER_DIR_REMOTE_PROMISE_TIMEOUT)->catch($handle_error)->then(sub {
$c->emit_event('mc_debug', "promiseok: $job_id");
_render_dir($dm, $dir);
my $reftx = $tx;