diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-12-02 16:18:11 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-12-12 23:23:34 +0100 |
commit | 46a8922105a8162a7ecabfb66b4242e072e22ef3 (patch) | |
tree | 68c68e51ab16820ef4b4ad7deded227f4a5bfc9e | |
parent | 3addff87c1f3c686ae528d47cbf6bad1e98032c0 (diff) | |
download | guix-46a8922105a8162a7ecabfb66b4242e072e22ef3.tar.gz guix-46a8922105a8162a7ecabfb66b4242e072e22ef3.zip |
guix build: Last argument of ‘dependents’ is optional.
* guix/scripts/build.scm (dependents): Make ‘max-depth’ optional.
Improve docstring.
Change-Id: Ibeffcf15297ecba3d4000b3adb4e3bc7853f6957
-rw-r--r-- | guix/scripts/build.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm index 0080f1fe58..f0a637a2ef 100644 --- a/guix/scripts/build.scm +++ b/guix/scripts/build.scm @@ -564,8 +564,8 @@ must be one of 'package', 'all', or 'transitive'~%") %standard-cross-build-options %standard-native-build-options))) -(define (dependents store packages max-depth) - "List all the things that would need to be rebuilt if PACKAGES are changed." +(define* (dependents store packages #:optional (max-depth +inf.0)) + "Return the list of dependents of all of PACKAGES up to distance MAX-DEPTH." ;; Using %BAG-NODE-TYPE is more accurate than using %PACKAGE-NODE-TYPE ;; because it includes implicit dependencies. (define (get-dependents packages edges) |