Message ID | 20210112132459.104727-1-emil.l.velikov@gmail.com |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <pacman-dev-bounces@lists.archlinux.org> Delivered-To: patchwork@archlinux.org Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mail.archlinux.org (Postfix) with ESMTPS id EB677369157; Tue, 12 Jan 2021 13:25:16 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 9E65723718; Tue, 12 Jan 2021 13:25:16 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id DF254236F4 for <pacman-dev@lists.archlinux.org>; Tue, 12 Jan 2021 13:25:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on luna.archlinux.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED=0.1, DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,FREEMAIL_FROM=0.5, RCVD_IN_DNSWL_NONE=-0.0001,SPF_HELO_NONE=0.001, T_DMARC_POLICY_NONE=0.01,T_DMARC_SIMPLE_DKIM=0.01 autolearn=no autolearn_force=no version=3.4.4 X-Spam-BL-Results: <dns:100.248.24.82.dnsbl.sorbs.net> [127.0.0.10] <dns:e.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org> [127.0.5.0] <dns:100.248.24.82.zen.spamhaus.org> [127.0.0.11] Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by luna.archlinux.org (Postfix) with ESMTPS for <pacman-dev@lists.archlinux.org>; Tue, 12 Jan 2021 13:25:10 +0000 (UTC) Received: by mail-wr1-x42e.google.com with SMTP id a12so2472558wrv.8 for <pacman-dev@lists.archlinux.org>; Tue, 12 Jan 2021 05:25:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yhoCJNgCDTZxQVBl6+lpIc8sV/xzq4C1uBu+/VGaYaE=; b=P8J10z1hf+z4QU5jFvaGQi9CdwrWMq33pHZZ/Xfb5+WmzN+/Sv2FfGFiU6Uypb0ZT2 g3MGoxfwgUVO1t9MbbKg3Bg4UPIBmpDjcMPC47a2YdNBy4tUPtwgkn41HboGftwQ//gN 5HK8VgKARnLn4ANbV/SDE7CZMN4/rpjmxZwHkd5KPC9td50kkMs0DGuxM+kx0MZHjuCO Mo8FqZiVHHMRXIRV/o3we93fQNZKsPAHGelD48kGyFB/cVW+ayWvI0nUi9p34ZtPzPDP sxVFLD8WDRY6VK8hbj9JFWmPBB7oT/SEQPWIP30wrU+gCF4xXdplT5H57zRFWeCVe/8G wUpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yhoCJNgCDTZxQVBl6+lpIc8sV/xzq4C1uBu+/VGaYaE=; b=o6s/iX2Yxvyx/V+cv28+1ruwmTBsJPaQvTq4kS/5B/phHE9Boz4p7m8H/aaca75hYN nOANJ+J/9mAOVnaYwDXJ8N/PJ/MoDH2fCRQoU9EehLYF/TiDyQhG14GL335Lb9l3Y/+u Cxf/rejY47ppyF0crJ7OLjcEDm26zVty/BLTu+X4uMbxVe9DqtFBHKoncaNY13luDIir zpaTJxpt2biYygyy//vctj2DlFF9Tmlw0dfX4bFirRGY61TRJ29Tpa40yadpbR3aWTkw QdhkyKbFTJ0u6CJJBxSwBAOdiCMSuB1yyqJfZGzgY4WeOwlTUNIpAaV7ni1rk/WAX3SA TfFw== X-Gm-Message-State: AOAM533ydBp7hIFWlvtk/8P2MiawGmWy3Vs8px05qZI8dytPkR9n34PP Uk4CS795BjEYtQl5/Xzwl9Tp1GRNU1XcvA== X-Google-Smtp-Source: ABdhPJxX9SYtKL95BUfG0iLQV/oBf+vvR7DyNaLpvQonCfPHbXefuz4W8MrXgniMS6kCcnGdmUYsAw== X-Received: by 2002:a05:6000:90:: with SMTP id m16mr4394245wrx.165.1610457908927; Tue, 12 Jan 2021 05:25:08 -0800 (PST) Received: from localhost.localdomain (cpc92308-cmbg19-2-0-cust99.5-4.cable.virginm.net. [82.24.248.100]) by smtp.gmail.com with ESMTPSA id w1sm4098058wrr.84.2021.01.12.05.25.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 05:25:08 -0800 (PST) From: Emil Velikov <emil.l.velikov@gmail.com> To: patchwork@archlinux.org Date: Tue, 12 Jan 2021 13:24:59 +0000 Message-Id: <20210112132459.104727-1-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [pacman-dev] [PATCH] balpm: set handle->parallel_downloads only with curl X-BeenThere: pacman-dev@lists.archlinux.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion list for pacman development <pacman-dev.lists.archlinux.org> List-Unsubscribe: <https://lists.archlinux.org/options/pacman-dev>, <mailto:pacman-dev-request@lists.archlinux.org?subject=unsubscribe> List-Archive: <https://lists.archlinux.org/pipermail/pacman-dev/> List-Post: <mailto:pacman-dev@lists.archlinux.org> List-Help: <mailto:pacman-dev-request@lists.archlinux.org?subject=help> List-Subscribe: <https://lists.archlinux.org/listinfo/pacman-dev>, <mailto:pacman-dev-request@lists.archlinux.org?subject=subscribe> Reply-To: Discussion list for pacman development <pacman-dev@lists.archlinux.org> Errors-To: pacman-dev-bounces@lists.archlinux.org Sender: "pacman-dev" <pacman-dev-bounces@lists.archlinux.org> Authentication-Results: mail.archlinux.org; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=P8J10z1h; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (mail.archlinux.org: domain of pacman-dev-bounces@lists.archlinux.org designates 5.9.250.164 as permitted sender) smtp.mailfrom=pacman-dev-bounces@lists.archlinux.org X-Rspamd-Queue-Id: EB677369157 X-Spamd-Result: default: False [4.59 / 15.00]; HAS_REPLYTO(0.00)[pacman-dev@lists.archlinux.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:5.9.250.164:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; R_MISSING_CHARSET(2.50)[]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; DKIM_TRACE(0.00)[gmail.com:-]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[82.24.248.100:received]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:5.9.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[emillvelikov@gmail.com,pacman-dev-bounces@lists.archlinux.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[pacman-dev@lists.archlinux.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM(-0.00)[-0.999]; FORGED_SENDER_MAILLIST(0.00)[]; GREYLIST(0.00)[pass,meta]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed),none] X-Rspamd-Server: mail.archlinux.org X-TUID: K6bzXxxyQy5l Content-Length: 901 |
Series |
[pacman-dev] balpm: set handle->parallel_downloads only with curl
|
expand
|
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 85cc4618..9504d4ca 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -73,9 +73,8 @@ alpm_handle_t SYMEXPORT *alpm_initialize(const char *root, const char *dbpath, #ifdef HAVE_LIBCURL curl_global_init(CURL_GLOBAL_ALL); myhandle->curlm = curl_multi_init(); -#endif - myhandle->parallel_downloads = 1; +#endif #ifdef ENABLE_NLS bindtextdomain("libalpm", LOCALEDIR);
The variable is missing when building without curl. Move it within the ifdef guard. Fixes: 9dc29ebf ("libalpm: set parallel_downloads to 1 when creating the handle") Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> --- Noticed while skimming through now the parallel downloader works. Might be a good idea to add as a CI permutation as/if we move to gitlab. --- lib/libalpm/alpm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)