From f227d15cd6a2cd68d6648cb57f09aad0a98c54be Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 22 Aug 2020 20:27:46 +0200 Subject: [PATCH] [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 --- .drone.yml | 2 +- Makefile | 2 +- bootstrap.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1673b51..06028a6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/Makefile b/Makefile index 640a4fa..473f015 100644 --- a/Makefile +++ b/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 diff --git a/bootstrap.sh b/bootstrap.sh index a4a4b80..9406435 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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