cli/packages: emit a little more debug info
To mark the start of purging/regrafting procedures.
This commit is contained in:
parent
40eb9cf17e
commit
54edffc4bb
1 changed files with 2 additions and 1 deletions
|
@ -337,6 +337,7 @@ a list of packages that will be updated."
|
|||
(let ((default-directory (straight--repos-dir repo)))
|
||||
(if (not (file-directory-p ".git"))
|
||||
(ignore (print! (warn "repos/%s is not a git repo, skipping" repo)))
|
||||
(print! (debug "Regrafting repos/%s..." repo))
|
||||
(straight--call "git" "reset" "--hard")
|
||||
(straight--call "git" "clean" "--ffd")
|
||||
(straight--call "git" "replace" "--graft" "HEAD")
|
||||
|
@ -365,7 +366,7 @@ a list of packages that will be updated."
|
|||
(delq nil (mapcar #'doom--packages-regraft-repo repos)))))
|
||||
|
||||
(defun doom--packages-purge-repo (repo)
|
||||
(print! (start "Purging repos/%s..." repo))
|
||||
(print! (debug "Purging repos/%s..." repo))
|
||||
(let ((repo-dir (straight--repos-dir repo)))
|
||||
(delete-directory repo-dir 'recursive)
|
||||
(ignore-errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue