diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-12-04 22:54:05 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-12-12 17:56:58 +0100 |
commit | 044277f610b02c3821afa0afdc2b2b140bb92cb4 (patch) | |
tree | 917c85294781ed74dbd9d895acb8889c06c4287f /doc | |
parent | 12c1afcdbdc984c760d00932bce64288b385bbc9 (diff) | |
download | patches-044277f610b02c3821afa0afdc2b2b140bb92cb4.tar patches-044277f610b02c3821afa0afdc2b2b140bb92cb4.tar.gz |
guix archive: Add '--list'.
* guix/scripts/archive.scm (show-help, %options): Add '--list'.
(list-contents): New procedure.
(guix-archive): Honor the '--list' option.
* tests/guix-archive.sh: Test it.
* doc/guix.texi (Invoking guix archive): Document it.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 01980bf2d3..cb51878004 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -4598,6 +4598,18 @@ unsafe. The primary purpose of this operation is to facilitate inspection of archive contents coming from possibly untrusted substitute servers. +@item --list +@itemx -t +Read a single-item archive as served by substitute servers +(@pxref{Substitutes}) and print the list of files it contains, as in +this example: + +@example +$ wget -O - \ + https://@value{SUBSTITUTE-SERVER}/nar/lzip/@dots{}-emacs-26.3 \ + | lzip -d | guix archive -t +@end example + @end table |