diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2020-12-09 21:50:21 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2020-12-15 17:32:09 +0100 |
| commit | 465d2cb286170933577de045e6e6dad7205bfe10 (patch) | |
| tree | 7dba0ec00536a6fa8483f88e11e3adbe682ccbf4 /tests/nar.scm | |
| parent | 7a2897149d60816c33c63b7b7254ad283f8c3602 (diff) | |
serialization: 'fold-archive' notifies about directory processing completion.
* guix/serialization.scm (fold-archive): Call PROC with a
'directory-complete tag when done with a directory.
(restore-file): Handle it.
* guix/scripts/archive.scm (list-contents): Likewise.
* guix/scripts/challenge.scm (archive-contents): Likewise.
* tests/nar.scm ("write-file-tree + fold-archive"): Adjust accordingly.
Diffstat (limited to 'tests/nar.scm')
| -rw-r--r-- | tests/nar.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/nar.scm b/tests/nar.scm index aeff3d33304..b542ebd47c6 100644 --- a/tests/nar.scm +++ b/tests/nar.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; | 3 | ;;; |
| 4 | ;;; This file is part of GNU Guix. | 4 | ;;; This file is part of GNU Guix. |
| 5 | ;;; | 5 | ;;; |
| @@ -218,8 +218,10 @@ | |||
| 218 | '(("R" directory #f) | 218 | '(("R" directory #f) |
| 219 | ("R/dir" directory #f) | 219 | ("R/dir" directory #f) |
| 220 | ("R/dir/exe" executable "1234") | 220 | ("R/dir/exe" executable "1234") |
| 221 | ("R/dir" directory-complete #f) | ||
| 221 | ("R/foo" regular "abcdefg") | 222 | ("R/foo" regular "abcdefg") |
| 222 | ("R/lnk" symlink "foo")) | 223 | ("R/lnk" symlink "foo") |
| 224 | ("R" directory-complete #f)) | ||
| 223 | 225 | ||
| 224 | (let () | 226 | (let () |
| 225 | (define-values (port get-bytevector) | 227 | (define-values (port get-bytevector) |
