diff options
author | Christopher Baines <mail@cbaines.net> | 2019-11-15 23:39:01 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-11-15 23:39:01 +0000 |
commit | a85b62c1d509418228cf558a31ab7ed0ef1a1843 (patch) | |
tree | a40b138784779dfa973d571726859c73178b6c5f | |
parent | 8f6422463acada1417684f944c10c81b53c17ca7 (diff) | |
download | data-service-a85b62c1d509418228cf558a31ab7ed0ef1a1843.tar data-service-a85b62c1d509418228cf558a31ab7ed0ef1a1843.tar.gz |
WIP
-rw-r--r-- | guix-data-service/jobs/load-new-guix-revision.scm | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm b/guix-data-service/jobs/load-new-guix-revision.scm index 643df0a..c56e897 100644 --- a/guix-data-service/jobs/load-new-guix-revision.scm +++ b/guix-data-service/jobs/load-new-guix-revision.scm @@ -897,21 +897,6 @@ WHERE job_id = $1" (lambda (key . args) (display-backtrace (make-stack #t) (current-error-port))))))) - -(define (store-item-for-git-repository-id-and-commit - conn git-repository-id commit) - (with-store store - (set-build-options store - #:fallback? #t) - (channel->guix-store-item - conn - store - (channel (name 'guix) - (url (git-repository-id->url - conn - git-repository-id)) - (commit commit))))) - (define (update-package-versions-table conn git-repository-id commit) ;; Lock the table to wait for other transactions to commit before updating ;; the table @@ -1045,9 +1030,18 @@ ORDER BY packages.name, packages.version" #t) (define (load-new-guix-revision conn git-repository-id commit) - (let ((store-item - (store-item-for-git-repository-id-and-commit - conn git-repository-id commit))) + (let* ((channel-for-commit + (channel (name 'guix) + (url (git-repository-id->url + conn + git-repository-id)) + (commit commit))) + (store-item + (with-store store + (set-build-options store #:fallback? #t) + (channel->guix-store-item conn + store + channel-for-commit)))) (if store-item (and (extract-information-from conn git-repository-id |