auto-package-update.el
auto-package-update.el copied to clipboard
Add pre/post hooks or git support
I keep my packages/ dirs in local git repos for each emacs installation I use to be able to go back for troubleshooting or quickly backing out of temporarily broken packages.
Would be great to combine that with this mode in some way.
pre
and post
update hooks are probably straightforward to implement.
Do you think those would be enough for your use case ?
Yeah.,. really don't add them if no one else wants them, if no one else wants this I can just use advices.
Alright. I will leave this open in the case someone finds the same need.
This could be useful for me too. I have Git sub-modules for some packages where I'm tracking development versions, so I'd totally use this to auto-update them too.
Ok, I will the before-update
and after-update
hooks when I find some time ;)
Haha, sounds good :D
Alright, done in 2e91e78a and 1c33c04.
@thomasf @andschwa Could you guys check if these are enough ?
Thanks !
@rranelli This works perfectly for me with some way over-engineered Lisp to update my submodule(s, I thought I had more and wrote it to handle a list of them):
(add-hook 'auto-package-update-after-hook
(lambda ()
(--each '(("magit" "git pull upstream next"))
(async-shell-command
(concat "cd " (f-expand (f-join "lisp" (car it)) user-emacs-directory)
" && " (cadr it))))))