Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not save removed package to el-get-status-file. #907

Merged
merged 1 commit into from Dec 14, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions el-get-status.el
Expand Up @@ -58,9 +58,13 @@
(package-status-alist (package-status-alist
(assq-delete-all package (el-get-read-status-file))) (assq-delete-all package (el-get-read-status-file)))
(new-package-status-alist (new-package-status-alist
(sort (append package-status-alist (sort
(list ; alist of (PACKAGE . PROPERTIES-LIST) ;; Do not save package information if status is removed.
(cons package (list 'status status 'recipe recipe)))) (if (string= status "removed")
package-status-alist
(append package-status-alist
(list ; alist of (PACKAGE . PROPERTIES-LIST)
(cons package (list 'status status 'recipe recipe)))))
(lambda (p1 p2) (lambda (p1 p2)
(string< (el-get-as-string (car p1)) (string< (el-get-as-string (car p1))
(el-get-as-string (car p2))))))) (el-get-as-string (car p2)))))))
Expand Down