From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cAlgIYWHoWM7AQAAbAwnHQ (envelope-from ) for ; Tue, 20 Dec 2022 10:59:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MMFRIYWHoWOJXQEA9RJhRA (envelope-from ) for ; Tue, 20 Dec 2022 10:59:33 +0100 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 3AB5B3BF0E for ; Tue, 20 Dec 2022 10:59:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7Z2x-0005Cb-6E; Tue, 20 Dec 2022 04:36:27 -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 1p7Z1e-0004eE-A3 for guix-patches@gnu.org; Tue, 20 Dec 2022 04:35:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7Z1d-0002mw-4f for guix-patches@gnu.org; Tue, 20 Dec 2022 04:35:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7Z1d-0003Qt-0C for guix-patches@gnu.org; Tue, 20 Dec 2022 04:35:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#57460] [PATCH v3 04/18] import: sourceforge: Issue error-message if version is given. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Dec 2022 09:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57460 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 57460@debbugs.gnu.org Received: via spool by 57460-submit@debbugs.gnu.org id=B57460.167152888313044 (code B ref 57460); Tue, 20 Dec 2022 09:35:04 +0000 Received: (at 57460) by debbugs.gnu.org; 20 Dec 2022 09:34:43 +0000 Received: from localhost ([127.0.0.1]:43722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7Z1G-0003OF-70 for submit@debbugs.gnu.org; Tue, 20 Dec 2022 04:34:42 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:57107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7Z1D-0003Ne-83 for 57460@debbugs.gnu.org; Tue, 20 Dec 2022 04:34:40 -0500 Received: from hermia.goebel-consult.de ([87.176.134.225]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1McH1Q-1obXaH2XPA-00cirj for <57460@debbugs.gnu.org>; Tue, 20 Dec 2022 10:34:33 +0100 Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 52F48663DB; Tue, 20 Dec 2022 10:34:23 +0100 (CET) From: Hartmut Goebel Date: Tue, 20 Dec 2022 10:34:09 +0100 Message-Id: <4233f0aa1b008ba00d1d9630aef291e45bc2c59d.1671527962.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.30.6 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:eIdEgUBzUb6dmwD+hCcjYKyhLYREQZLfIuis9t9rAeM9TpJqt84 XTvBSCIBoN44W4pCxNIAdnG842gV4GsXtbhDXI8k/4EmvH2DPaMTiiD/HBPeepdSyol1z0g a1pVg15Wdxts8TXTSLDnaeBbc0OZLUfnFY+GRVyTxEQTSRZ9F1kSiaCNuX7e9DI4BS4ygHD LkrgZsCGMPAEH/SmZJILw== UI-OutboundReport: notjunk:1;M01:P0:uPZdCFuwsgE=;hhc8cNXnfdgZs84rsoy+A/ATmcV fQXTFROJ+JpXNbr9SN6oP8pWJeO9kYqiL+9LK+ByyIUg5lKvqWSqri8Kbsfvs8QEmNwbHsvKc F0jQleXVYgKkXeQxl8XlVWS7VJyHV9K03tG9YqFEgPbyZNrvjTJRg28wEqmFUmacpLZv5ehPj 0LYmOdoFVbEbPkpIPjXSSyg2GVD4Wrn1cAi3pThzuDArYupXH2iolvfWM1MOIoKHN1RPE0MHW hmL42XniKye873rvPbLhZ8OGVv2oWpsW0LVCYkUb+S2c4rWS8YVotVJnCXzzNhtAOzRrNN+8F dVtvPSppIW9WUzLDJSUQcsURW/jzKDMzvW12hUwwT1YcZ2f7+Dw0myOktpRd4mQPv4cYHRP9+ NT+ZCIrfW1htILDc4MxqWb6OzWJqiMsRjOKAhgJSar3nZMoyfoy53OnO7QGzK/78qt6n7Q5mG 84vPULuP4S5ZPueuELN+LT4S+SVhIk00dfATifAsK1crOd9bReGKNCBfYj9rBSXAlm1QDl/nw MZdiy/O5mVJpAnDEtx6sQfATok3/0QI+uMr3P9gcAmVxl1OBQ+QZPIG1/EQsZoKXaC14R6PrV bmMGnzoXn67f/b6g3Z8Yxy9dEGbT831XRAvaWyUyr/lA8SuFC4q82S7hpMNm74hMHCmjiH4En bTw973xxOgztABLgbTIOMPl3nZuYphWNednaUKU8IQ== 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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=1671530373; a=rsa-sha256; cv=none; b=u4OMDhx00deqhsrFRdNmWxWOhVT9bQqE3bItj0zJD88XGrtaet7Pv39q1Wlu+t4oIxODsG GT8P32R0XNjgxq2AsKGiTw+qFg/rb4+sfb23SnrsG1c6gMenVg8xytRvMQlQh3ji3cbhOA DoQnyoYNUK5E4cMg/pgeikmJcgPT9drgNOugpjJQa9U/vj8gmysqKIweS+zK5UCIu9KOoF 6J/D9Ben/1S1VHn7JH1zDbGi3tW/k1212kG7/EWRmPeyftrwWblyKtn9IoJmJMYM5inl8t sUdHrssRaEFuivHRl/gi7agtIZE48ffjxfW4autZMX6apgArXvhGK6drF4tmVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671530373; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: 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=xf6/7goiLva3kI3aL9fp0Rv5psOIY4+GI6xsy1Muzqg=; b=JNVl/lLc17xWf1ejM+stNkUbZBZh2EgUatrAxwianc8Cg9ZOtVWi4dprtm8QRaPIQ9yzBd zKwiNF8MvJ15u4KinbUcz3ghRBhrITw+BeGZHXoJpEe/Z497T+VS5+x9DN60qKfPlaAPCo BwzlGgAP137VNQhbwb/wysN56ZN5FgBLz5MJVbJ0A9kE6KxkKaTDfe0Q7uPTwxnJH0PLw1 c9xpXhCQb0yvKAOpCIWUVKx+aKyGw/RZdomgwH9Ap0oP8eMcJIMJU615YOUyfnJclDAZp0 gA1TVkonjDLGvp/+/VGSGQ9cUDfU1r9z9/hjJCXOHMnhRFk30d0xn0dGS9+R1g== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.49 X-Spam-Score: -1.49 X-Migadu-Queue-Id: 3AB5B3BF0E X-TUID: N3+mr0A00jjB Due to the complicated directory structure at sourceforce, enabling the sourceforge importer to update to a specific version is very complicated to implement. Since only 2.0% of the packages in guix are covered by this updater I dedided to not implement this. * guix/gnu-maintenance.scm (latest-sourceforge-release): Add #:version argument. Issue error-message if version is given. --- guix/gnu-maintenance.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm index 3067ee18b3..e414de8e28 100644 --- a/guix/gnu-maintenance.scm +++ b/guix/gnu-maintenance.scm @@ -37,6 +37,8 @@ #:autoload (guix download) (%mirrors) #:use-module (guix ftp-client) #:use-module (guix utils) + #:use-module (guix diagnostics) + #:use-module (guix i18n) #:use-module (guix memoization) #:use-module (guix records) #:use-module (guix upstream) @@ -705,7 +707,7 @@ GNOME packages; EMMS is included though, because its releases are on gnu.org." #:base-url %savannah-base #:directory directory))) -(define (latest-sourceforge-release package) +(define* (latest-sourceforge-release package #:key (version #f)) "Return the latest release of PACKAGE." (define (uri-append uri extension) ;; Return URI with EXTENSION appended. @@ -720,6 +722,12 @@ GNOME packages; EMMS is included though, because its releases are on gnu.org." ((200 302) #t) (else #f)))) + (when version + (error + (formatted-message + (G_ "Updating to a specific version is not yet implemented for ~a, sorry.") + "sourceforge"))) + (let* ((name (package-upstream-name package)) (base (string-append "https://sourceforge.net/projects/" name "/files")) -- 2.30.6