guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: update-guix-package: Use 'origin-hash'.


From: guix-commits
Subject: 02/02: update-guix-package: Use 'origin-hash'.
Date: Thu, 28 May 2020 04:21:36 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit ccd9107ed9e8b918c6fb521cc69ac459fe4257ac
Author: Vincent Legoll <vincent.legoll@gmail.com>
AuthorDate: Wed May 27 23:13:48 2020 +0200

    update-guix-package: Use 'origin-hash'.
    
    * gnu/packages/package-management.scm (main): Use 'origin-hash' instead
    of 'origin-sha256'.
    
    Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
---
 build-aux/update-guix-package.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build-aux/update-guix-package.scm 
b/build-aux/update-guix-package.scm
index 83f6eca..f695e91 100644
--- a/build-aux/update-guix-package.scm
+++ b/build-aux/update-guix-package.scm
@@ -112,7 +112,8 @@ COMMIT."
                                       #:select? version-controlled?))
               (hash     (query-path-hash store source))
               (location (package-definition-location))
-              (old-hash (origin-sha256 (package-source guix))))
+              (old-hash (content-hash-value
+                          (origin-hash (package-source guix)))))
          (edit-expression location
                           (update-definition commit hash
                                              #:old-hash old-hash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]