diff --git a/pacman/hooks/10-pacman-full-upgrade.hook b/pacman/hooks/10-pacman-full-upgrade.hook new file mode 100644 index 0000000..004dc4c --- /dev/null +++ b/pacman/hooks/10-pacman-full-upgrade.hook @@ -0,0 +1,13 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Operation = Remove +Type = Package +Target = * + +[Action] +Depends = pacman +Description = Do a system sync first before doing any operations +When = PostTransaction +Exec = /usr/bin/pacman -Syu + diff --git a/pacman/hooks/10-pkglist-update.hook b/pacman/hooks/10-pkglist-update.hook index 1bff997..885ca3e 100644 --- a/pacman/hooks/10-pkglist-update.hook +++ b/pacman/hooks/10-pkglist-update.hook @@ -1,6 +1,5 @@ [Trigger] Operation = Install -Operation = Upgrade Operation = Remove Type = Package Target = * @@ -9,4 +8,5 @@ Target = * Depends = pacman Description = Update package list at $HOME/dotfiles/pkglist When = PostTransaction -Exec = /usr/bin/pacman -Qqne >> ~/dotfiles/pkglist.txt +Exec = /bin/sh /usr/local/bin/create-pacman-pkglist.sh +