Skip to content

Instantly share code, notes, and snippets.

@hyotang666
Created March 22, 2016 01:10
Show Gist options
  • Save hyotang666/3448c01f3ef9241e6860 to your computer and use it in GitHub Desktop.
Save hyotang666/3448c01f3ef9241e6860 to your computer and use it in GitHub Desktop.
(defun packages-made-by(system)
(if(find system (asdf:already-loaded-systems):test #'string-equal)
(warn "System ~S is already loaded."system)
(let((depends-on(asdf:system-depends-on(asdf:find-system system))))
(when depends-on
(ql:quickload depends-on :silent t)) ; setup
(let((old(list-all-packages))) ; keep olds state
(ql:quickload system :silent t) ; install new
(set-difference(list-all-packages)old)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment