Emacs: Run straight-thaw-versions after straight-pull-all.

Resets packages to the version specified in the lockfile.
This commit is contained in:
tastytea 2021-02-08 16:05:48 +01:00
parent 27e25bcbe3
commit d9b2ef65fa

View File

@ -64,7 +64,10 @@
(file-attributes (straight--build-dir)))))) (file-attributes (straight--build-dir))))))
(when (> (- (time-to-seconds) mtime-seconds) (when (> (- (time-to-seconds) mtime-seconds)
(* 60 60 24 days)) (* 60 60 24 days))
(my/straight-update-repos))))) (my/straight-update-repos))))
;; Reset frozen packages. I use the lockfile to work around bugs.
(advice-add #'straight-pull-all :after #'straight-thaw-versions))
:hook ((emacs-startup . my/straight-check-last-update) :hook ((emacs-startup . my/straight-check-last-update)
((after-init . straight-prune-build)))) ((after-init . straight-prune-build))))