aboutsummaryrefslogtreecommitdiff
path: root/guix-build-coordinator
diff options
context:
space:
mode:
Diffstat (limited to 'guix-build-coordinator')
-rw-r--r--guix-build-coordinator/hooks.scm14
-rw-r--r--guix-build-coordinator/utils.scm6
2 files changed, 15 insertions, 5 deletions
diff --git a/guix-build-coordinator/hooks.scm b/guix-build-coordinator/hooks.scm
index 50c2445..b2f6f6c 100644
--- a/guix-build-coordinator/hooks.scm
+++ b/guix-build-coordinator/hooks.scm
@@ -280,10 +280,15 @@
(if (pair? compression)
(car compression)
compression))
+ ;; TODO This logic should sit elsewhere
(nar-destination
(string-append
publish-directory "/"
- "nar/" (symbol->string target-compression) "/"
+ "nar/"
+ (if (eq? compression 'none)
+ ""
+ (string-append
+ (symbol->string target-compression) "/"))
(basename output-filename)))
(temporary-destination
(string-append nar-destination ".tmp")))
@@ -336,9 +341,14 @@
(if (pair? compression-details)
(car compression-details)
compression-details))
+ ;; TODO This logic should sit elsewhere
(file (string-append
publish-directory "/"
- "nar/" (symbol->string compression) "/"
+ "nar/"
+ (if (eq? compression 'none)
+ ""
+ (string-append
+ (symbol->string compression) "/"))
(basename output-filename))))
(list compression (stat:size (stat file #f)))))
compressions)
diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm
index 0acd62a..0a3383c 100644
--- a/guix-build-coordinator/utils.scm
+++ b/guix-build-coordinator/utils.scm
@@ -567,9 +567,9 @@
(define* (store-item->recutils compression file-size)
(let ((url (encode-and-join-uri-path
`(,@(split-and-decode-uri-path nar-path)
- ,@(if compression
- (list (symbol->string compression))
- '())
+ ,@(if (eq? compression 'none)
+ '()
+ (list (symbol->string compression)))
,(basename store-path)))))
(format #f "URL: ~a~%Compression: ~a~%~@[FileSize: ~a~%~]"
url