[FIX] Only install missing packages

The `-S` flag reinstalls dependencies if they are already present on the
system, the `--needed` flag makes it so that `pacman` skips them instead
This commit is contained in:
Bruno BELANYI 2020-08-22 20:27:46 +02:00
parent 92533a4e0b
commit f227d15cd6
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ steps:
image: archlinux
pull: always
commands:
- pacman -Suy --noconfirm make git stow sudo vim tmux
- pacman -Suy --noconfirm --needed make git stow sudo vim tmux
- "echo 'root ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- make link-all
- make unlink-all

View file

@ -111,7 +111,7 @@ HASKELL_DEPENDENCIES := \
STOW_TARGET := $(HOME)
STOW = stow -t $(STOW_TARGET) -R -v
YAY := yay -S --noconfirm
YAY := yay -S --noconfirm --needed
.PHONY: all
all: install

View file

@ -24,7 +24,7 @@ done
# Install pre-requisite packages for installing packages and connecting
prerequisite() {
sudo pacman -Syu --noconfirm base base-devel git stow mosh jq
sudo pacman -Syu --noconfirm --needed base base-devel git stow mosh jq
}
# Install the yay AUR helper