From dc9a44afdc0babdafa2e3e0861af079e891e13a4 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Fri, 8 May 2020 13:35:41 -0600 Subject: Add rustup-update.hook for pacman --- etc-pacman.d-hooks-rustup-update.hook | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 etc-pacman.d-hooks-rustup-update.hook diff --git a/etc-pacman.d-hooks-rustup-update.hook b/etc-pacman.d-hooks-rustup-update.hook new file mode 100644 index 0000000..3c9d656 --- /dev/null +++ b/etc-pacman.d-hooks-rustup-update.hook @@ -0,0 +1,12 @@ +[Trigger] +Operation = Upgrade +Type = Package +Target = * + +[Action] +Description = Updating rust components... +When = PostTransaction +Depends = rustup +# !!!! Be sure to manually replace $HOME the actual +# name of the user whose toolchain should be updated +Exec = /bin/sh -c "RUSTUP_HOME='/home/$HOME/.rustup' /bin/rustup update" -- cgit v1.2.3-70-g09d2