mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 13:08:51 +08:00
Fix migration code to only store recipes for installed packages
This commit is contained in:
parent
6d75c14cc5
commit
51d8eafc7d
|
@ -122,10 +122,12 @@
|
|||
ps
|
||||
;; convert to the new format, fetching recipes as we go
|
||||
(loop for (p s) on ps by 'cddr
|
||||
for x = (el-get-package-symbol p)
|
||||
when x
|
||||
collect (cons x (list 'status s
|
||||
'recipe (el-get-package-def x)))))))
|
||||
for psym = (el-get-package-symbol p)
|
||||
when psym
|
||||
collect (cons psym
|
||||
(list 'status s
|
||||
'recipe (when (string= s "installed")
|
||||
(el-get-package-def psym))))))))
|
||||
|
||||
(defun el-get-package-status-alist (&optional package-status-alist)
|
||||
"return an alist of (PACKAGE . STATUS)"
|
||||
|
|
Loading…
Reference in New Issue
Block a user