From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sJPzCVrISmG+TAAAgWs5BA (envelope-from ) for ; Wed, 22 Sep 2021 08:08:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QNSpBVrISmEuDAAAB5/wlQ (envelope-from ) for ; Wed, 22 Sep 2021 06:08:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5D0F32CB9 for ; Wed, 22 Sep 2021 08:08:25 +0200 (CEST) Received: from localhost ([::1]:35338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSvQe-0000ff-2Y for larch@yhetil.org; Wed, 22 Sep 2021 02:08:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSvQI-0000fV-NZ for guix-patches@gnu.org; Wed, 22 Sep 2021 02:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSvQI-0001nY-Fo for guix-patches@gnu.org; Wed, 22 Sep 2021 02:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mSvQI-0007jB-AH for guix-patches@gnu.org; Wed, 22 Sep 2021 02:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50618] [PATCH] import: stackage: =?UTF-8?Q?Don=E2=80=99t?= try to update packages not available on Stackage. Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Sep 2021 06:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50618 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: 50618@debbugs.gnu.org Received: via spool by 50618-submit@debbugs.gnu.org id=B50618.163229086729673 (code B ref 50618); Wed, 22 Sep 2021 06:08:02 +0000 Received: (at 50618) by debbugs.gnu.org; 22 Sep 2021 06:07:47 +0000 Received: from localhost ([127.0.0.1]:48624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSvQ3-0007iU-3F for submit@debbugs.gnu.org; Wed, 22 Sep 2021 02:07:47 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:53678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSvQ0-0007i8-2Y for 50618@debbugs.gnu.org; Wed, 22 Sep 2021 02:07:45 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [80.241.60.245]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4HDnrn628zzQk95; Wed, 22 Sep 2021 08:07:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1632290856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fa7VFuxz/6hJyRlexOsXdlIRNT7Y0gqNSY13IkFQRLs=; b=B101mtP/Vrbgk8P+q7ZnEQyI7CF7YNzrHA0DxnKMdY1arWj9qNoMeJidCBcH2llWmV6JJo cPBMCLHic/xKTneD3zEFlRVUwQ7mc+6cgzN1QR6vYIioG9aZ+mpSiDONC2aaNzd9otRsQG BEWfk8lYGzAsxUMKVJhZrg7gnR2F0+Fuw4SpUpbgtYGwBP3ToTJSysZqarFi9eZmaPsdKT f+JFBxpTsq0BfCJ4Nmr1H6ySDC+X/RFyxlVIbOqt6YsoIfbEptwzd1Ky3izYiNqxGH0cQ6 YkapW4h+CjLs0ubsCkicBoszRmheBCSpFFFMVUaGP+oMW2WoAJ+UVeFd2H2JcQ== Date: Wed, 22 Sep 2021 08:07:32 +0200 From: Lars-Dominik Braun Message-ID: References: <33ce44c6b5dc4f0c2ea2cf7a8402807d91e849a6.1631791821.git.public@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <33ce44c6b5dc4f0c2ea2cf7a8402807d91e849a6.1631791821.git.public@yoctocell.xyz> X-Rspamd-Queue-Id: E427926D X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632290905; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fa7VFuxz/6hJyRlexOsXdlIRNT7Y0gqNSY13IkFQRLs=; b=E8jYoSRDLbwnM/THDmwK4QD07mi7h9nJ+0do79/J4RtODW6TGcmZX0uPJXzWshMp92S96X ChnWMX7hWHXfeyvaQyQcQN1IUYpltBkuy2tWLnrZluTfpRgwSh/32NMRkQInst5QF6t4bP GL8WZNqc5v/uP34zq08yTfk0sW2uJoUdchxU3a3/pUdNJJIUARXBYYzZH+hs+2CxsGZdFE jKQPl6r39zrvisakvOu0Wk4PiWvKa/Q3DJYIjoTeJvneI6NknWOKGFFDSMM5pc51LrG3gQ Ol9Z9CS3SDenS2M3vBn69XhBu+ztVfW9D+GKAKvfpp7FoheidIKYqengfGfSjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632290905; a=rsa-sha256; cv=none; b=Fe/fXsZ47GO8VoQ83p7aUjHCR7hSa6kIX46EEKKXbIV55bCmhYkUY9CT1naUq3/G23ABG1 4w8ThxGeW8XbTDTmXVl0TGeCmMO+zAP/GktXII8F28YqJtmFCp/gb0U8dhEV7l9pw98jIO GyARloUu41//0/Hqh5Pj9TqRH1IOFECJnXShm6XWU9s8kiUIkxCTZ7FdYL8C/P5ai8Vz2j PtCAx27LpFYS1bP0D195OFzcb3KaojVtQCCcr0LKREAT7WOQhrzs+jv/WYTZsx8ORzr+e5 ZOv1Yj9VurAySsVJUtrDH2BjbDFVVTxKgp39fbuOvYuMQByPipEWfcKu6gG5cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b="B101mtP/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b="B101mtP/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5D0F32CB9 X-Spam-Score: -1.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7FcfaQQKuMvo Hi, > +(define (stackage-package? package) > + "Whether PACKAGE is available on the default Stackage LTS release." > + (and (hackage-package? package) > + (guard (c ((and (http-get-error? c) > + (= 404 (http-get-error-code c))) > + #f)) > + (let* ((name (guix-package->hackage-name package)) > + (url (string-append (%stackage-url) "/lts-" > + %default-lts-version "/package/" name))) > + (http-fetch url))))) > + since stackage-lts-info-fetch is memoized, wouldn’t it be cheaper to look up the package there? (At least for lots of packages.) Cheers, Lars