From: Helio Machado <0x2b3bfa0@gmail.com>
To: 44038@debbugs.gnu.org
Subject: [bug#44038] [PATCH] Fix deprecation warning for origin-sha256
Date: Fri, 16 Oct 2020 18:14:29 +0200 [thread overview]
Message-ID: <CANe01w5vyRSF2ZqycmR2CukB_DXpJHYLQix-Ao+nAg5B=ECPWw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 163 bytes --]
This patch fixes the following build-time deprecation warning:
guix/import/print.scm:77:21: warning: 'origin-sha256' is deprecated,
use 'origin-hash' instead
[-- Attachment #1.2: Type: text/html, Size: 252 bytes --]
[-- Attachment #2: 0001-guix-import-Fix-deprecation-warning-for-origin-sha25.patch --]
[-- Type: application/octet-stream, Size: 954 bytes --]
From 531aefdcce503332bacb97f34cd68e249a820cf0 Mon Sep 17 00:00:00 2001
From: Helio Machado <0x2b3bfa0+git@googlemail.com>
Date: Fri, 16 Oct 2020 18:07:26 +0200
Subject: [PATCH] guix/import: Fix deprecation warning for origin-sha256
* guix/import/print.scm (source->code source version): Replace
origin-sha256 by origin-hash
---
guix/import/print.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/import/print.scm b/guix/import/print.scm
index 11cc218285..afbb680607 100644
--- a/guix/import/print.scm
+++ b/guix/import/print.scm
@@ -74,7 +74,7 @@ when evaluated."
(define (source->code source version)
(let ((uri (origin-uri source))
(method (origin-method source))
- (sha256 (origin-sha256 source))
+ (sha256 (origin-hash source))
(file-name (origin-file-name source))
(patches (origin-patches source)))
`(origin
--
2.24.3 (Apple Git-128)
next reply other threads:[~2020-10-16 18:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-16 16:14 Helio Machado [this message]
2020-10-17 20:21 ` [bug#44038] [PATCH] Fix deprecation warning for origin-sha256 Ludovic Courtès
2020-10-18 22:25 ` Helio Machado
2020-10-19 8:57 ` bug#44038: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANe01w5vyRSF2ZqycmR2CukB_DXpJHYLQix-Ao+nAg5B=ECPWw@mail.gmail.com' \
--to=0x2b3bfa0@gmail.com \
--cc=44038@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.