[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: Extract out the code for starting an inferior
From: |
Christopher Baines |
Subject: |
04/07: Extract out the code for starting an inferior |
Date: |
Fri, 11 Mar 2022 08:28:39 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 0f07826a200eb767842b93b99d9a99ed713345c1
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Fri Mar 11 11:22:08 2022 +0000
Extract out the code for starting an inferior
---
guix-data-service/jobs/load-new-guix-revision.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm
b/guix-data-service/jobs/load-new-guix-revision.scm
index a1b0679..9814c64 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -1196,8 +1196,7 @@ WHERE job_id = $1")
output)))
-(define (extract-information-from conn store guix-revision-id commit
store-path)
- (simple-format #t "debug: extract-information-from: ~A\n" store-path)
+(define (start-inferior-for-data-extration store store-path)
(let* ((guix-locpath (getenv "GUIX_LOCPATH"))
(inf (let ((guix-locpath
;; Augment the GUIX_LOCPATH to include glibc-locales from
@@ -1270,6 +1269,12 @@ WHERE job_id = $1")
(inferior-eval '(when (defined? '%graft?) (%graft? #f)) inf)
+ inf))
+
+(define (extract-information-from conn store guix-revision-id commit
store-path)
+ (simple-format #t "debug: extract-information-from: ~A\n" store-path)
+
+ (let ((inf (start-inferior-for-data-extration store store-path)))
(catch
#t
(lambda ()
- branch master updated (fe556f4 -> c067918), Christopher Baines, 2022/03/11
- 01/07: Compute more cross derivations, Christopher Baines, 2022/03/11
- 04/07: Extract out the code for starting an inferior,
Christopher Baines <=
- 06/07: Close the load revision inferior prior to inserting data, Christopher Baines, 2022/03/11
- 07/07: Fix an issue with the /builds page, Christopher Baines, 2022/03/11
- 02/07: Disable value history in the inferior repl, Christopher Baines, 2022/03/11
- 03/07: Process each system target pair individually, Christopher Baines, 2022/03/11
- 05/07: Add to the hardcoded list of valid targets, Christopher Baines, 2022/03/11