mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
upstream: Use 'origin-hash'.
* guix/upstream.scm (update-package-source): Use 'origin-hash' instead of 'origin-sha256'.
This commit is contained in:
parent
feea1d0e62
commit
c7d2dd6900
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2015 Alex Kost <alezost@gmail.com>
|
||||
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;;
|
||||
|
@ -441,7 +441,8 @@ (define (update-expression expr replacements)
|
|||
(if version-loc
|
||||
(let* ((loc (package-location package))
|
||||
(old-version (package-version package))
|
||||
(old-hash (origin-sha256 (package-source package)))
|
||||
(old-hash (content-hash-value
|
||||
(origin-hash (package-source package))))
|
||||
(old-url (match (origin-uri (package-source package))
|
||||
((? string? url) url)
|
||||
(_ #f)))
|
||||
|
|
Loading…
Reference in a new issue