From 4977252600aeb9c0d424f4e677b01bbf043ea79e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0pa=C4=8Dek?= Date: Fri, 16 Oct 2020 10:15:32 +0200 Subject: [PATCH] kluautil: remove hard depedency on lua-cqueues For now we still attempt to support systems without lua-cqueues, e.g. Ubuntu 16.04. lua-http depends on lua-cqueues so the test for availability of lua-http at the beginning of kr_https_fetch() should cover lua-cqueues as well. --- daemon/lua/kluautil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/lua/kluautil.lua b/daemon/lua/kluautil.lua index b96a4bad7..a1aebc765 100644 --- a/daemon/lua/kluautil.lua +++ b/daemon/lua/kluautil.lua @@ -1,6 +1,5 @@ -- SPDX-License-Identifier: GPL-3.0-or-later -local cqerrno = require('cqueues.errno') local ffi = require('ffi') local kluautil = {} @@ -53,6 +52,7 @@ function kluautil.kr_https_fetch(url, out_file, ca_file) if not http_ok or not httptls_ok or not openssl_ok then return nil, 'error: lua-http and luaossl libraries are missing (but required)' end + local cqerrno = require('cqueues.errno') assert(string.match(url, '^https://')) -- 2.47.3