fix(managers): ensure dnf and pacman always receive non-interactive flags after CLI prompt confirmation

This commit is contained in:
soda64 committed 2026-10-02 18:20:10 +02:00
1 parent b1c0f22ce7
commit 1b109613bf
2 files changed
+8 -8

No files matched your search

+5 -5
View File
@@ -55,17 +55,17 @@ class PacmanManager(PackageManager):
) -> CommandResult:
if packages:
cmd = ["pacman", "-S"]
if non_interactive:
cmd.append("--noconfirm")
if dry_run:
cmd.append("-p")
else:
cmd.append("--noconfirm")
cmd.extend(packages)
else:
cmd = ["pacman", "-Su"]
if non_interactive:
cmd.append("--noconfirm")
if dry_run:
cmd.append("-p")
else:
cmd.append("--noconfirm")
return self.runner.run(cmd, stream=not dry_run)
@@ -79,7 +79,7 @@ class PacmanManager(PackageManager):
cmd = ["pacman", "-Syu"]
if dry_run:
cmd.append("-p")
elif non_interactive:
else:
cmd.append("--noconfirm")
return self.runner.run(cmd, stream=not dry_run)