[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
29/134: import: crate: Make it clearer when a crate has been yanked.
From: |
guix-commits |
Subject: |
29/134: import: crate: Make it clearer when a crate has been yanked. |
Date: |
Tue, 3 Dec 2024 10:04:14 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit cdf35e0a37de87e34c27be971228ab56f148c1b6
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Dec 2 20:49:30 2024 +0200
import: crate: Make it clearer when a crate has been yanked.
* guix/import/crate.scm (make-crate-sexp): If a crate has been yanked
then adjust the returned package's source file-name with 'yanked' as
part of the name.
Change-Id: Ib3d16ff2e89a75a7a0755c1f336abadba0189666
---
guix/import/crate.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/import/crate.scm b/guix/import/crate.scm
index 5996571cda..05c43b3ae8 100644
--- a/guix/import/crate.scm
+++ b/guix/import/crate.scm
@@ -214,7 +214,10 @@ and LICENSE."
(source (origin
(method url-fetch)
(uri (crate-uri ,name version))
- (file-name (string-append name "-" version
".tar.gz"))
+ (file-name
+ ,@(if yanked?
+ `((string-append name "-" version
"-yanked.tar.gz"))
+ `((string-append name "-" version
".tar.gz"))))
(sha256
(base32
,(bytevector->nix-base32-string (port-sha256
port))))))
- 03/134: gnu: rust-gix-bitmap-0.2: Update to 0.2.12., (continued)
- 03/134: gnu: rust-gix-bitmap-0.2: Update to 0.2.12., guix-commits, 2024/12/03
- 05/134: gnu: rust-gix-command-0.3: Update to 0.3.10., guix-commits, 2024/12/03
- 12/134: gnu: rust-gix-trace-0.1: Update to 0.1.11., guix-commits, 2024/12/03
- 18/134: gnu: rust-embed-resource-2: Update to 2.5.1., guix-commits, 2024/12/03
- 70/134: gnu: rust-hashlink-0.8: Update to 0.8.4., guix-commits, 2024/12/03
- 71/134: gnu: rust-hashlink-0.9: Update to 0.9.1., guix-commits, 2024/12/03
- 75/134: gnu: rust-macrotest-1: Update to 1.0.13., guix-commits, 2024/12/03
- 19/134: gnu: Add rust-fs-set-times-0.20., guix-commits, 2024/12/03
- 39/134: gnu: rust-hashbrown-0.15: Update to 0.15.2., guix-commits, 2024/12/03
- 27/134: gnu: rust-winapi-util-0.1: Update to 0.1.9., guix-commits, 2024/12/03
- 29/134: import: crate: Make it clearer when a crate has been yanked.,
guix-commits <=
- 26/134: gnu: rust-schannel-0.1: Update to 0.1.27., guix-commits, 2024/12/03
- 31/134: gnu: rust-security-framework-0.2: Mark as deprecated., guix-commits, 2024/12/03
- 20/134: gnu: Add rust-fs-at-0.2., guix-commits, 2024/12/03
- 51/134: gnu: Add rust-nucleo-matcher-0.2., guix-commits, 2024/12/03
- 53/134: gnu: Add rust-pulldown-cmark-0.11., guix-commits, 2024/12/03
- 58/134: gnu: rust-peg-0.8: Update to 0.8.4., guix-commits, 2024/12/03
- 61/134: gnu: rust-rustyline-9: Update to 9.1.2., guix-commits, 2024/12/03
- 62/134: gnu: Add rust-rustyline-derive-0.6., guix-commits, 2024/12/03
- 65/134: gnu: rust-approx-0.5: Update to 0.5.1., guix-commits, 2024/12/03
- 76/134: gnu: rust-mockall-double-0.3: Update to 0.3.1., guix-commits, 2024/12/03