guix-commits
[Top][All Lists]
Advanced

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

branch master updated: Guard against null package metadata ids


From: Christopher Baines
Subject: branch master updated: Guard against null package metadata ids
Date: Thu, 13 Aug 2020 04:07:22 -0400

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

cbaines pushed a commit to branch master
in repository data-service.

The following commit(s) were added to refs/heads/master by this push:
     new 7984179  Guard against null package metadata ids
7984179 is described below

commit 7984179f5e008ea2627304545c04bb67ddb3990b
Author: Danjela Lura <danielaluraa@gmail.com>
AuthorDate: Thu Aug 13 00:30:42 2020 +0200

    Guard against null package metadata ids
    
    Signed-off-by: Christopher Baines <mail@cbaines.net>
---
 guix-data-service/jobs/load-new-guix-revision.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/guix-data-service/jobs/load-new-guix-revision.scm 
b/guix-data-service/jobs/load-new-guix-revision.scm
index 258568e..d9fc0dc 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -740,9 +740,10 @@ WHERE job_id = $1"
              (inferior-packages->package-metadata-ids
               conn inf packages package-license-set-ids))))
 
-      (with-time-logging "fetching package metadata tsvector entries"
-        (insert-package-metadata-tsvector-entries
-         conn new-package-metadata-ids))
+      (unless (null? new-package-metadata-ids)
+        (with-time-logging "fetching package metadata tsvector entries"
+          (insert-package-metadata-tsvector-entries
+           conn new-package-metadata-ids)))
 
       (with-time-logging "getting package-ids"
         (inferior-packages->package-ids



reply via email to

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