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
This commit is contained in:
parent
d26c5ebca6
commit
f162efea95
@ -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
13
pr253.patch
Normal 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;
|
||||
|
Loading…
Reference in New Issue
Block a user