mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
guix build: Last argument of ‘dependents’ is optional.
* guix/scripts/build.scm (dependents): Make ‘max-depth’ optional. Improve docstring. Change-Id: Ibeffcf15297ecba3d4000b3adb4e3bc7853f6957
This commit is contained in:
parent
3addff87c1
commit
46a8922105
1 changed files with 2 additions and 2 deletions
|
@ -564,8 +564,8 @@ must be one of 'package', 'all', or 'transitive'~%")
|
||||||
%standard-cross-build-options
|
%standard-cross-build-options
|
||||||
%standard-native-build-options)))
|
%standard-native-build-options)))
|
||||||
|
|
||||||
(define (dependents store packages max-depth)
|
(define* (dependents store packages #:optional (max-depth +inf.0))
|
||||||
"List all the things that would need to be rebuilt if PACKAGES are changed."
|
"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
|
;; Using %BAG-NODE-TYPE is more accurate than using %PACKAGE-NODE-TYPE
|
||||||
;; because it includes implicit dependencies.
|
;; because it includes implicit dependencies.
|
||||||
(define (get-dependents packages edges)
|
(define (get-dependents packages edges)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue