From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SAymN8gLtWDi/gAAgWs5BA (envelope-from ) for ; Mon, 31 May 2021 18:16:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yKscM8gLtWCkZwAAB5/wlQ (envelope-from ) for ; Mon, 31 May 2021 16:16:08 +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 0966C1CAB1 for ; Mon, 31 May 2021 18:16:07 +0200 (CEST) Received: from localhost ([::1]:52920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnkaE-0005Ju-QT for larch@yhetil.org; Mon, 31 May 2021 12:16:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnkaA-0005JK-G7 for guix-patches@gnu.org; Mon, 31 May 2021 12:16:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnkaA-0007D3-90 for guix-patches@gnu.org; Mon, 31 May 2021 12:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnkaA-0006jm-3i for guix-patches@gnu.org; Mon, 31 May 2021 12:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48697] [PATCH] import: Add CHICKEN egg importer. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 31 May 2021 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48697 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: 48697@debbugs.gnu.org, raingloom Received: via spool by 48697-submit@debbugs.gnu.org id=B48697.162247774925877 (code B ref 48697); Mon, 31 May 2021 16:16:02 +0000 Received: (at 48697) by debbugs.gnu.org; 31 May 2021 16:15:49 +0000 Received: from localhost ([127.0.0.1]:34683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnkZw-0006jI-Ui for submit@debbugs.gnu.org; Mon, 31 May 2021 12:15:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnkZv-0006iz-8r for 48697@debbugs.gnu.org; Mon, 31 May 2021 12:15:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50210) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnkZm-00074D-OF; Mon, 31 May 2021 12:15:40 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48394 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnkZm-0000El-Fz; Mon, 31 May 2021 12:15:38 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87zgwd7anf.fsf@gnu.org> <87eedppbdh.fsf@yoctocell.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 Prairial an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 31 May 2021 18:15:36 +0200 In-Reply-To: <87eedppbdh.fsf@yoctocell.xyz> (Xinglu Chen's message of "Sat, 29 May 2021 21:51:06 +0200") Message-ID: <87v96y3mmv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1622477768; 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; bh=30fmx8lGP8fx6bD6tDeFT9EefwUk4Elx26WAYlriolU=; b=SZQtxxB6ZOflSgKSCcGXvA83vIPy+OjSRIwcqc/3+FmcOtp4JljtWRLitkDxN2o1aw7Mx+ wtKB7L2DLO7jugnNS9ku1UIvaWa35n3z6YV6ZjRRhTSEHGvJ4w5BQJwZj77tcosJVykmRl 4lPkEe4hNJdV+RvXO/9RPugL2gBKUu4gSabTHk/4vmGndOpm5wY1E9YS5ieFiuVgtdsCTf paHq9zZzu8L9MLOsV9kdxIdcfdxkAIteHO0I6XUD+fR9ytW45IvGBLgXkpFs5S5i3kgTZb DJ5BwX09aNQlc27P2ilJ+nOEuYqODga1QtMK5jVfQ5Jp7aZnfucj/JW9qliLHQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622477768; a=rsa-sha256; cv=none; b=AGD0pzTrfV2hFfd8GeHlb1usPkarNJZUFQ/8gj+bJqJwu1VcPHSctcFON+VNjyyew9ZKZU obs9bgVt5yccSQnTPOP5cVuyVnmhgTbjO0BjoCaZfF+7EszEShct7EUIpFzA/uL6qyFwGK ti/yYE9AEbxwPVbaR1oxch7UFlmHBecg9zxEY0owMHOicro9nxQyDt+d5pV3toicJMhQDL Ian8Lnxs30bCLT4bdLAoujrkBw2jZYh5RT6OGbEIjnd3f/htuPomLaje5JOjXWtjlABkLc +IeeT8lzysfm7UBke7XMH0US7v/ob27WTNj/PlBTumVqDEdqfGQQVcWorBttAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 0966C1CAB1 X-Spam-Score: -2.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: FBiToXW0WQnA Heya, Xinglu Chen skribis: > On Sat, May 29 2021, Ludovic Court=C3=A8s wrote: [...] >>> +(define (find-latest-version name) >>> + "Get the latest version of the egg NAME." >>> + (let ((directory (scandir (egg-directory name)))) >>> + (if directory >>> + (last directory) >>> + (begin >>> + (format #t (G_ "Package not found in eggs repository: ~a~%")= name) >>> + #f)))) >> >> This should be rendered with =E2=80=98warning=E2=80=99 from (guix diagno= stics). >> >> Or maybe it should be raised as a =E2=80=98formatted-message=E2=80=99 ex= ception? > > Not sure if it should be an exception or not, if you run =E2=80=98guix im= port egg=E2=80=99 > on a package that doesn=E2=80=99t exist, it will already throw an error > > $ ./pre-inst-env guix import egg lasdkfj > Package not found in eggs repository: lasdkfj > guix import: error: failed to download meta-data for package 'lasdkfj' True! So perhaps we can omit the extra message altogether since it doesn=E2=80=99t convey any more info. Thanks, Ludo=E2=80=99.