Skip to content

Commit f490429

Browse files
aarondilltwpayne
authored andcommitted
fix: pass the --needed flag to pacman
This ensures that pacman doesn't re-install an already up-to-date package
1 parent f9eeeeb commit f490429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/upgradecmd_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (c *Config) upgradeUNIXPackage(
109109
if useSudo {
110110
args = append(args, "sudo")
111111
}
112-
args = append(args, "pacman", "-S", "chezmoi")
112+
args = append(args, "pacman", "-S", "--needed", "chezmoi")
113113
return c.run(chezmoi.EmptyAbsPath, args[0], args[1:])
114114
}
115115

0 commit comments

Comments
 (0)