From patchwork Sun Jun 20 16:30:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 30552 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 51E8627BC81; Sun, 20 Jun 2021 17:31:32 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2807127BC78 for ; Sun, 20 Jun 2021 17:31:32 +0100 (BST) Received: from localhost ([::1]:55948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lv0M7-0001ky-1A for patchwork@mira.cbaines.net; Sun, 20 Jun 2021 12:31:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv0Le-0001Ck-RQ for guix-patches@gnu.org; Sun, 20 Jun 2021 12:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lv0Le-0007Nf-Jm for guix-patches@gnu.org; Sun, 20 Jun 2021 12:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lv0Le-0000cR-Fl for guix-patches@gnu.org; Sun, 20 Jun 2021 12:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49141] [PATCH] etc: snippets: Use =?utf-8?b?4oCYaGctZmlsZS1u?= =?utf-8?b?YW1l4oCZ?= when origin uses =?utf-8?b?4oCYaGctZmV0Y2jigJku?= Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Jun 2021 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49141 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49141@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16242066262332 (code B ref -1); Sun, 20 Jun 2021 16:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jun 2021 16:30:26 +0000 Received: from localhost ([127.0.0.1]:34847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lv0L4-0000bX-IX for submit@debbugs.gnu.org; Sun, 20 Jun 2021 12:30:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:42116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lv0L3-0000bQ-BA for submit@debbugs.gnu.org; Sun, 20 Jun 2021 12:30:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv0L2-0000lO-SG for guix-patches@gnu.org; Sun, 20 Jun 2021 12:30:24 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:42786 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lv0Ky-0006lp-UK for guix-patches@gnu.org; Sun, 20 Jun 2021 12:30:23 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1624206614; bh=2YQeTqpuRSodR6BrMVgnrAcbT9jq1Bb31z6xyaj1zOg=; h=From:To:Subject:Date; b=gqEoKwWNAF7iT5jSFVUnEsR3sAb0ok/vNlxNOqmcNwhmpD6jL5of39qxoJxoH2YDW Y+ZgObfdSrSLdL3TgXF1D5FKQL3Pw8ZONW8prrNFkG3bW2fvsm7x8NqlHYYYrNI1BT G4PooaCWVcsrEm7qdZ6FCIE/epiU7m8Rry9mxZEQ= Message-Id: <725dd8ab7a1c9628d425c52f18be5e1ff54cfe2d.1624206584.git.public@yoctocell.xyz> Date: Sun, 20 Jun 2021 18:30:14 +0200 MIME-Version: 1.0 Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 29 X-Spam_score: 2.9 X-Spam_bar: ++ X-Spam_report: (2.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.486, PDS_OTHER_BAD_TLD=1.999, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Adjust to changes in commit aaafd19bd1e37265de07e246286a6819792c25b4. * etc/snippets/scheme-mode/guix-origin: Use ‘hg-file-name’ instead of ‘string-append’ when ‘method’ for origin is ‘hg-fetch’. --- etc/snippets/scheme-mode/guix-origin | 2 ++ 1 file changed, 2 insertions(+) base-commit: a211078f992bc5a26eaf787c6b01caa41de67597 diff --git a/etc/snippets/scheme-mode/guix-origin b/etc/snippets/scheme-mode/guix-origin index 2820a369f3..b763a32926 100644 --- a/etc/snippets/scheme-mode/guix-origin +++ b/etc/snippets/scheme-mode/guix-origin @@ -19,6 +19,8 @@ (t "(string-append \\"https://\\" version \\".tar.gz\\")"))}$0) ${1:$(cond ((equal yas-text "git-fetch") "(file-name (git-file-name name version))") + ((equal yas-text "hg-fetch") + "(file-name (hg-file-name name version))") ((member yas-text '("svn-fetch" "hg-fetch" "cvs-fetch" "bzr-fetch")) "(file-name (string-append name \\"-\\" version \\"-checkout\\"))") (t ""))}