mirror of
https://codeberg.org/guix/guix.git
synced 2026-09-06 13:51:41 +00:00
guix: build: fossil: Set archive's top-level dirname.
* guix/build/fossil.scm (fossil-fetch): Specify --name in `fossil tarball' invocation. Change-Id: I57e62212c45c571573a14560236ccd9149b4df11 Merges: https://codeberg.org/guix/guix/pulls/8837
This commit is contained in:
@@ -36,12 +36,12 @@
|
||||
"Fetch CHECK-IN from URI into DIRECTORY. CHECK-IN must be a valid
|
||||
Fossil check-in name. Return #t on success, else raise an exception."
|
||||
(setenv "FOSSIL_HOME" "/tmp")
|
||||
(let ((name (basename (strip-store-file-name file) ".tar.gz")))
|
||||
(invoke fossil-command
|
||||
"tarball" check-in file "-R"
|
||||
"tarball" check-in file "--name" name "-R"
|
||||
(case (uri-scheme (string->uri-reference uri))
|
||||
((file https) ;clone the repository first
|
||||
(match-let ((repository (simple-format #f "/tmp/~a.fossil"
|
||||
(basename file ".tar.gz")))
|
||||
(match-let ((repository (simple-format #f "/tmp/~a.fossil" name))
|
||||
((input . output) (pipe)))
|
||||
;; Trust the TLS certificate of the server,
|
||||
;; since we'll later verify the tarball's checksum.
|
||||
@@ -56,4 +56,4 @@ Fossil check-in name. Return #t on success, else raise an exception."
|
||||
(let ((message (string-append "fetching a Fossil repository through SSH"
|
||||
" is not supported: " uri)))
|
||||
(raise (condition (&message (message message))))))
|
||||
((#f) uri)))) ;local file
|
||||
((#f) uri))))) ;local file
|
||||
|
||||
Reference in New Issue
Block a user