mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-08 07:16:58 +02:00
List files to load for system.
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.
This commit is contained in:
parent
52720a5e6f
commit
9b80d2914c
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user