diff options
author | Marius Bakke <mbakke@fastmail.com> | 2017-05-24 22:12:13 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2017-05-24 22:12:13 +0200 |
commit | 36747eb0dad504686560afba51742f782f7c3646 (patch) | |
tree | 2a35da31146f0a6693fd9cddfc0c514edefe9c99 /guix/scripts/publish.scm | |
parent | ffaf5cbd361b6589daac1912aa5a43abea86e52b (diff) | |
parent | 0b7b8fb0456475374de24b6302a6ce3cc5921ed0 (diff) |
Merge branch 'master' into staging
Diffstat (limited to 'guix/scripts/publish.scm')
-rw-r--r-- | guix/scripts/publish.scm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/guix/scripts/publish.scm b/guix/scripts/publish.scm index db7f6a957e..c306b809a7 100644 --- a/guix/scripts/publish.scm +++ b/guix/scripts/publish.scm @@ -425,11 +425,13 @@ requested using POOL." ;; return 404. (eventually pool (single-baker item - ;; (format #t "baking ~s~%" item) - (bake-narinfo+nar cache item - #:ttl ttl - #:compression compression - #:nar-path nar-path)) + ;; Check whether CACHED has been produced in the meantime. + (unless (file-exists? cached) + ;; (format #t "baking ~s~%" item) + (bake-narinfo+nar cache item + #:ttl ttl + #:compression compression + #:nar-path nar-path))) (when ttl (single-baker 'cache-cleanup |