This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch master
in repository guix-cuirass.

The following commit(s) were added to refs/heads/master by this push:
     new 07a419e  database: Do not always filter specifications.
07a419e is described below

commit 07a419e34a31c017c69ec31243c12aa858e2f15f
Author: Mathieu Othacehe <othac...@gnu.org>
AuthorDate: Wed Jan 19 10:40:18 2022 +0100

    database: Do not always filter specifications.
    
    * src/cuirass/database.scm (db-get-specification): Always return the 
requested
    specification even if it is inactive.
---
 src/cuirass/database.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cuirass/database.scm b/src/cuirass/database.scm
index 4982e2d..877f4a0 100644
--- a/src/cuirass/database.scm
+++ b/src/cuirass/database.scm
@@ -458,7 +458,8 @@ DELETE FROM Specifications WHERE name=" name ";")))
 
 (define (db-get-specification name)
   "Retrieve a specification in the database with the given NAME."
-  (expect-one-row (db-get-specifications name)))
+  (expect-one-row
+   (db-get-specifications name #:filter-inactive? #f)))
 
 (define* (db-get-specifications #:optional name
                                 #:key (filter-inactive? #t))

Reply via email to