wanted: asdf:who-depends-on
Bug #481187 reported by
Tobias C. Rittweiler
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ASDF |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
I'd like to have said function which returns all the currently loaded system which depend
on a given system. (The function should possibly take some &key parameter so you
can ask either for direct or deep dependencies.)
Changed in asdf: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
To post a comment you must log in.
In Slime's ASDF contrib, we currently use the following
(defun who-depends-on (system) dependencies (op system)
(asdf: :coerce- name (if (consp dep) (second dep) dep)))
(cdr (assoc op (asdf:component -depends- on op system)))))) map-defined- systems
(system- dependencies 'asdf:load-op system)
:test #'string=) -name system) result))))
(flet ((system-
(mapcar #'(lambda (dep)
(let ((system-name (asdf::coerce-name system))
(result))
(
#'(lambda (system)
(when (member system-name
(push (asdf:component
result)))