guix-commits
[Top][All Lists]
Advanced

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

26/26: channels: Raise an error if dependency's introduction is malforme


From: guix-commits
Subject: 26/26: channels: Raise an error if dependency's introduction is malformed
Date: Sun, 4 Jun 2023 05:38:34 -0400 (EDT)

jpoiret pushed a commit to branch master
in repository guix.

commit cacc0cb6ab22218a3783a51ba9986405ede4e0d8
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Sun Mar 5 11:56:09 2023 +0100

    channels: Raise an error if dependency's introduction is malformed
    
    * guix/channels.scm (sexp->channel-introduction): Do it.
---
 guix/channels.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/guix/channels.scm b/guix/channels.scm
index 1ff72b7e72..681adafc6c 100644
--- a/guix/channels.scm
+++ b/guix/channels.scm
@@ -252,7 +252,14 @@ could be found at DIRECTORY or one of its ancestors."
                             ('commit commit) ('signer signer)
                             _ ...)
      (make-channel-introduction commit (openpgp-fingerprint signer)))
-    (x #f)))
+    (x (raise (condition
+               (&message
+                (message (format #f (G_ "channel dependency has an invalid\
+ introduction field"))))
+               (&error-location
+                (location
+                 (source-properties->location
+                  (source-properties x)))))))))
 
 (define (read-channel-metadata port)
   "Read from PORT channel metadata in the format expected for the



reply via email to

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