[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/24: guix: platform: Use srfi-34's raise instead of raise-exception.
From: |
guix-commits |
Subject: |
24/24: guix: platform: Use srfi-34's raise instead of raise-exception. |
Date: |
Thu, 13 Jul 2023 13:02:39 -0400 (EDT) |
jpoiret pushed a commit to branch master
in repository guix.
commit d17879cd0dec60ea7490632910257890f207d6cb
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Mon Jul 10 11:09:32 2023 +0200
guix: platform: Use srfi-34's raise instead of raise-exception.
* guix/platform.scm (lookup-platform-by-system)
(lookup-platform-by-target)
(lookup-platform-by-target-or-system): Use srfi-34's raise instead of
raise-exception.
---
guix/platform.scm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/guix/platform.scm b/guix/platform.scm
index a2d95ab507..55917ca308 100644
--- a/guix/platform.scm
+++ b/guix/platform.scm
@@ -120,8 +120,8 @@ exception."
(let ((s (platform-system platform)))
(and (string? s) (string=? s system))))
(platforms))
- (raise-exception (condition (&platform-not-found-error
- (target-or-system system))))))
+ (raise (condition (&platform-not-found-error
+ (target-or-system system))))))
(define (lookup-platform-by-target target)
"Return the platform corresponding to the given TARGET. Raise
@@ -130,16 +130,16 @@ exception."
(let ((t (platform-target platform)))
(and (string? t) (string=? t target))))
(platforms))
- (raise-exception (condition (&platform-not-found-error
- (target-or-system target))))))
+ (raise (condition (&platform-not-found-error
+ (target-or-system target))))))
(define (lookup-platform-by-target-or-system target-or-system)
"Return the platform corresponding to the given TARGET or SYSTEM. Raise
&PLATFORM-NOT-FOUND-ERROR when no platform could be found."
(or (false-if-platform-not-found (lookup-platform-by-target
target-or-system))
(false-if-platform-not-found (lookup-platform-by-system
target-or-system))
- (raise-exception (condition (&platform-not-found-error
- (target-or-system target-or-system))))))
+ (raise (condition (&platform-not-found-error
+ (target-or-system target-or-system))))))
(define (platform-system->target system)
"Return the target matching the given SYSTEM if it exists or false
- 03/24: gnu: hurd: Update supported systems., (continued)
- 03/24: gnu: hurd: Update supported systems., guix-commits, 2023/07/13
- 05/24: gnu: gnumach: Update to 1.8+git20221224., guix-commits, 2023/07/13
- 07/24: gnu: hurd: Update to v0.9.git20230216., guix-commits, 2023/07/13
- 09/24: gnu: hurd: Update libpciaccess to 0.17., guix-commits, 2023/07/13
- 12/24: gnu: parted: Support building for the Hurd., guix-commits, 2023/07/13
- 14/24: hurd-boot: Setup pci-arbiter and rumpdisk translators., guix-commits, 2023/07/13
- 16/24: system: hurd: Boot with pci.arbiter and rumpdisk., guix-commits, 2023/07/13
- 18/24: gnu: gnumach: Support "noide" argument., guix-commits, 2023/07/13
- 22/24: services: static-networking: Support netdde for the Hurd., guix-commits, 2023/07/13
- 23/24: gnu: gnumach: Disable builtin networking., guix-commits, 2023/07/13
- 24/24: guix: platform: Use srfi-34's raise instead of raise-exception.,
guix-commits <=
- 11/24: gnu: hurd-minimal: Include libshouldbeinlibc and libstore., guix-commits, 2023/07/13
- 13/24: gnu: hurd: Add rumpkernel., guix-commits, 2023/07/13
- 15/24: services: childhurd: Bump default qemu memory to 2048MB., guix-commits, 2023/07/13
- 21/24: system: hurd: Add netdde to %base-packages/hurd., guix-commits, 2023/07/13