Skip to content

Commit

Permalink
List files to load for system.
Browse files Browse the repository at this point in the history
Install a new function in the hooks file. This function might help fix
--self-upgrade later, we keep it around for when we'll have time to see
about that.
  • Loading branch information
dimitri committed Oct 16, 2017
1 parent 52720a5 commit 9b80d29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/hooks.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@

(setf pgloader::*self-upgrade-immutable-systems*
(remove "pgloader" (asdf:already-loaded-systems) :test #'string=))

(defun list-files-to-load-for-system (system-name)
(loop for (o . c) in (asdf/plan:plan-actions
(asdf/plan:make-plan 'asdf/plan:sequential-plan
'asdf:load-source-op
(asdf:find-system system-name)))
when (typep o 'asdf:load-source-op)
append (asdf:input-files o c)))

0 comments on commit 9b80d29

Please sign in to comment.