[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 image: archlinux
pull: always pull: always
commands: 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" - "echo 'root ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- make link-all - make link-all
- make unlink-all - make unlink-all

View file

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

View file

@ -24,7 +24,7 @@ done
# Install pre-requisite packages for installing packages and connecting # Install pre-requisite packages for installing packages and connecting
prerequisite() { 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 # Install the yay AUR helper