From f162efea9571374a6878eab7a50144fa20096facb6510770f94f486333332676 Mon Sep 17 00:00:00 2001 From: Andrii Nikitin Date: Thu, 3 Feb 2022 10:21:07 +0000 Subject: [PATCH] Add patch to address https://github.com/openSUSE/MirrorCache/pull/253 OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=45 --- MirrorCache.spec | 2 ++ pr253.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pr253.patch diff --git a/MirrorCache.spec b/MirrorCache.spec index e6e6575..582ae8c 100644 --- a/MirrorCache.spec +++ b/MirrorCache.spec @@ -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} diff --git a/pr253.patch b/pr253.patch new file mode 100644 index 0000000..fa42856 --- /dev/null +++ b/pr253.patch @@ -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; +