Print filename instead of absolute paths for purged ELPA packages

This commit is contained in:
Henrik Lissner 2019-12-30 17:28:31 -05:00
parent f8ed1894e7
commit a4653f475b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -296,10 +296,11 @@ declaration) or dependency thereof that hasn't already been."
(if (file-directory-p path)
(delete-directory path 'recursive)
(delete-file path))
(print! (success "Deleted %s") (relpath path)))
(print! (success "Deleted %s") (filename path)))
(error
(print! (error "Failed to delete %s because: %s")
(relpath path) e)))))))
(filename path)
e)))))))
(defun doom-cli-packages-purge (&optional elpa-p builds-p repos-p regraft-repos-p)
"Auto-removes orphaned packages and repos.