[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:
parent
92533a4e0b
commit
f227d15cd6
|
@ -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
|
||||
|
|
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue