From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WCQYG56MSWflbwEA62LTzQ:P1 (envelope-from ) for ; Fri, 29 Nov 2024 09:42:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id WCQYG56MSWflbwEA62LTzQ (envelope-from ) for ; Fri, 29 Nov 2024 10:42:54 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=RV+QHtZM; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ruJNEYJ3; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" 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 F2EB28687F for ; Fri, 29 Nov 2024 10:42:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGxW8-0000i9-4E; Fri, 29 Nov 2024 04:42:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGxVm-0000ew-SU for guix-patches@gnu.org; Fri, 29 Nov 2024 04:42:07 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tGxVl-0004ZM-VA for guix-patches@gnu.org; Fri, 29 Nov 2024 04:42:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=acgj0glEt7hanHQUf4oPk2R5nSiXvs7JtfKGwt4jdQ8=; b=RV+QHtZMhEAMlEPJX2xTFTFJ5DiVN7r6S8bHgBQJzuxOG20hc3XbDQPpUuXZ0z4nkAL6mLrqnsP+mi3f/kfYKnd9KI2fTUBnTmohMqnq57uA1GWZCi4t/vcWKnsGaBhMpqnsL88p1w+cPFIsurx9Gcs03/3ntW3FiA4k+VBhopBma0rKy9i6+3rw1OWdUPv6cvSTtnAi/C8JoDsHwcDDam5cbuIulFAa5jqVXPEHFpbWQgyHfI/HfKJAiEWsnqoNbsrfr9Uev8+Yaz0JtlfD9HfGxnpt7pQStBD1zOTR5KNfB0Jku4fVxAk2dhADizlGhrC2vrZ+SRcd9zQqWr+etQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGxVl-0005x0-Oe for guix-patches@gnu.org; Fri, 29 Nov 2024 04:42:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74542] [PATCH v2 07/16] import: gnome: Keep going upon HTTP errors. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Nov 2024 09:42:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74542 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74542@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 74542-submit@debbugs.gnu.org id=B74542.173287328422681 (code B ref 74542); Fri, 29 Nov 2024 09:42:05 +0000 Received: (at 74542) by debbugs.gnu.org; 29 Nov 2024 09:41:24 +0000 Received: from localhost ([127.0.0.1]:41063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGxV5-0005tf-LF for submit@debbugs.gnu.org; Fri, 29 Nov 2024 04:41:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGxUi-0005qC-M3 for 74542@debbugs.gnu.org; Fri, 29 Nov 2024 04:41:01 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tGxUd-0003oy-6T; Fri, 29 Nov 2024 04:40:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=acgj0glEt7hanHQUf4oPk2R5nSiXvs7JtfKGwt4jdQ8=; b=ruJNEYJ3zom1vLOBfyvO k+PPTSRwaMjluKC+ZR3U0yqBAl9qFcqkJ47DUWt9dHX8K8pskPGS49dqtCcXJkkWLZp6onPcX1peX XoyHU38GkFEi568HZapb4dER6CEqa+q2HS5usaU903mqnThkPX+A87A2j3gvyuZtJxB2TYK/4Ba59 ESQAouBnZGT5kFNzGfJRnbj7F+hCEEfqpYIm8lAcr7tUtPkcfEd7//SSl2rU4SoBKdtjMsJ9vb9v0 OCu009Tp8BXw40+q9yIVwUhEi8uVqcf+/dgTZUnttoOqICGRUTJuQRBFQ5ltqhoE90/rLeAf16WNR TYQR34ixbutVwQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Fri, 29 Nov 2024 10:40:10 +0100 Message-ID: <0871a73df814857b3af173a154cbfbc30ba40aef.1732872499.git.ludo@gnu.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 0.66 X-Spam-Score: 0.66 X-Migadu-Queue-Id: F2EB28687F X-Migadu-Scanner: mx12.migadu.com X-TUID: ewak0qX83E0L * guix/import/gnome.scm (import-gnome-release): Do not re-raise condition C, emit a warning instead. Change-Id: I9a7c337a17d1f7ed4677398e7b0f383befca7d74 --- guix/import/gnome.scm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/guix/import/gnome.scm b/guix/import/gnome.scm index 054ae44f7a..3ba8ae02e5 100644 --- a/guix/import/gnome.scm +++ b/guix/import/gnome.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2017, 2019, 2021 Ludovic Courtès +;;; Copyright © 2017, 2019, 2021, 2024 Ludovic Courtès ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2022 Hartmut Goebel ;;; @@ -23,6 +23,8 @@ (define-module (guix import gnome) #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix http-client) + #:use-module (guix diagnostics) + #:use-module (guix i18n) #:use-module (json) #:use-module (srfi srfi-1) #:use-module (srfi srfi-34) @@ -111,9 +113,12 @@ (define* (import-gnome-release package #:key (version #f)) releases)) (guard (c ((http-get-error? c) - (if (= 404 (http-get-error-code c)) - #f - (raise c)))) + (unless (= 404 (http-get-error-code c)) + (warning (G_ "failed to download from '~a': ~a (~s)~%") + (uri->string (http-get-error-uri c)) + (http-get-error-code c) + (http-get-error-reason c))) + #f)) (let* ((port (http-fetch/cached (string->uri (string-append "https://ftp.gnome.org/pub/gnome/sources/" -- 2.46.0