Skip to content

Commit

Permalink
fix: pass the --needed flag to pacman
Browse files Browse the repository at this point in the history
This ensures that pacman doesn't re-install an already up-to-date package
  • Loading branch information
aarondill authored and twpayne committed Mar 17, 2024
1 parent f9eeeeb commit f490429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/upgradecmd_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (c *Config) upgradeUNIXPackage(
if useSudo {
args = append(args, "sudo")
}
args = append(args, "pacman", "-S", "chezmoi")
args = append(args, "pacman", "-S", "--needed", "chezmoi")
return c.run(chezmoi.EmptyAbsPath, args[0], args[1:])
}

Expand Down

0 comments on commit f490429

Please sign in to comment.