Extract out the code for starting an inferior
This commit is contained in:
parent
8379427cbb
commit
0f07826a20
1 changed files with 7 additions and 2 deletions
|
|
@ -1196,8 +1196,7 @@ WHERE job_id = $1")
|
||||||
|
|
||||||
output)))
|
output)))
|
||||||
|
|
||||||
(define (extract-information-from conn store guix-revision-id commit store-path)
|
(define (start-inferior-for-data-extration store store-path)
|
||||||
(simple-format #t "debug: extract-information-from: ~A\n" store-path)
|
|
||||||
(let* ((guix-locpath (getenv "GUIX_LOCPATH"))
|
(let* ((guix-locpath (getenv "GUIX_LOCPATH"))
|
||||||
(inf (let ((guix-locpath
|
(inf (let ((guix-locpath
|
||||||
;; Augment the GUIX_LOCPATH to include glibc-locales from
|
;; 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)
|
(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
|
(catch
|
||||||
#t
|
#t
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue