From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yAk9MvSkRWc4AwAA62LTzQ:P1 (envelope-from ) for ; Tue, 26 Nov 2024 10:37:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yAk9MvSkRWc4AwAA62LTzQ (envelope-from ) for ; Tue, 26 Nov 2024 11:37:40 +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=nWZeWl8x; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VFMYY1xc; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732617460; a=rsa-sha256; cv=none; b=iPcG9N0rOW17q+rzAIAIqscwSLb5KVt+35OSd1kK8rQTU77Vx0jFH1b4Ak4sxQk5P9AKDn AULAYlipIJ4/wvAXNCGQR+ZToNHXSTjhaQYqCbE/J79sLW1dx+5usWmHLyg/JOV1SR+2TC ZhqhZU/vyIX24EmdXgQZrlSPHtS/vMPAg9iND+GXmKUnz3JKcnQ2f08VWgRgTiYOIwQjG6 cyv3NlmeX6KDKSZnAxTt/ABzk1WUebA7gY8ikLRghQgU0ByksqLfU/tGKwmz+ethE7Ljsn 1FsKM1mxu4HzmKxvYplzQkQ91iyZfyRfMj9nh1VedfIi6gL9aaaB/5nd/HIVtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=nWZeWl8x; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=VFMYY1xc; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732617460; 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=acgj0glEt7hanHQUf4oPk2R5nSiXvs7JtfKGwt4jdQ8=; b=C7rp29eN9MNPH5juisAfTEjWIL3MVSjknS2NL6CTasDcPSC+opjvKWKtstF+DvGMDKKFzC aZMdG+JDJZ9h1OA8zVWrOfFzH7+xN8ngqyowwOda7UXdA5dkNKqWs/zfHoqORzHZ9pUylf a15P0M+LxAlYJEKa8aNyGSC28S3ts0g02iDVdFqCfZtcc/5qugpDy7HzOaUI/1N9Oyg2/y z6lFfUq1YrTJav0a551bzJ2/C1SCDJ3uY52NrxckahmaknLJR7smAWr8aVUyzyehemIHqY mNpyOhz/5pjhyhFnMBrYiPR2dyvdA/DLy8OxH7iXgUMSqxHxD9uNo19YHUXkrg== 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 B64227D05E for ; Tue, 26 Nov 2024 11:37:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFswY-0005Jj-26; Tue, 26 Nov 2024 05:37:18 -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 1tFswL-0005Ij-No for guix-patches@gnu.org; Tue, 26 Nov 2024 05:37:08 -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 1tFswL-0000pT-Ej for guix-patches@gnu.org; Tue, 26 Nov 2024 05:37:05 -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=nWZeWl8xb6u3qhCYES2Hbw1mOFjtDfslSVqdfcgJwlZIR0VShhC0iG29/rZWlIjvguTgJuTkiUVQHEDiDa9Lge5gJBYZj3zKPfgDkKnA7UqzCdXK1AfwGtMNnCLb6miel5oyucTP6Wpf/3rwznifE+yt8NvMRR41QF/R2ScupNgzmdxWVme+NdmXEftN+W+0elswqMgABnYP8ocByT92DM5xpNoSPq262c1gUPz1ecbzaJ46Hue3jvySXbCDFROvjDbksJxB3vFwsN4l41gvr8NK/by1r4VuEqkWdCRyIbeJBJCJZ+aFXb49Oldmyj1ckA6R8D2ZFKhuY26RExEl3Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFswL-0002ec-Al for guix-patches@gnu.org; Tue, 26 Nov 2024 05:37:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74542] [PATCH 07/11] 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: Tue, 26 Nov 2024 10:37: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.173261740710096 (code B ref 74542); Tue, 26 Nov 2024 10:37:05 +0000 Received: (at 74542) by debbugs.gnu.org; 26 Nov 2024 10:36:47 +0000 Received: from localhost ([127.0.0.1]:46206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFsw2-0002cf-Ex for submit@debbugs.gnu.org; Tue, 26 Nov 2024 05:36:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFsvp-0002ar-9C for 74542@debbugs.gnu.org; Tue, 26 Nov 2024 05:36:34 -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 1tFstd-00006z-D1; Tue, 26 Nov 2024 05:34:17 -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=VFMYY1xckA/1cY68C6n+ u0RkJahBdj6TniBcDBJB+QEcKqNjXwxz0SDObgS805f54PYn3Wube72/q67EdbTP7rLn7c+T+tOfo KdSTPl8tA5EqLllpYAQdJtcr/CFjaWzLtRMqnOcvgfN9DcmN1KItfjf9rbKKEeYHMBeJkrK9ozV8V 9mewSfX5KE/dhH9Bw4E2IxXLm4dxXiGdoOQe8CKR7YNVadWqJ+UmsEW7IURUT9BM833/Aprst8Edg xF3JLTs2r5Ng0do7gSUZWU072ilmCQbfBR6ESsXVM+FzkDCWrpIrrN5vnTg+QR872/QInt+gQ/oa1 H3DcnZvoRgO6hg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 26 Nov 2024 11:33:46 +0100 Message-ID: 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-Queue-Id: B64227D05E X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.49 X-Spam-Score: -3.49 X-TUID: SpXTRS+ajgTN * 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