pacutils icon indicating copy to clipboard operation
pacutils copied to clipboard

`pacinstall --no-confirm` removes [Y/n] prompt messages

Open AladW opened this issue 2 years ago • 0 comments

For example:

❯ echo alad/aurutils-git | sudo pacinstall --resolve-replacements=none             
Resolving dependencies...
Checking package conflicts...
installing alad/aurutils-git (9.6.r105.g90da0224-1 -> 10b.r2.g15375b13-1)

Download Size:      0.00 B
Installed Size:   155.83 K
Size Delta:       867.00 B

checking keys in keyring (1/1) 100%checking keys in keyring (0/1) 0%
checking package integrity (1/1) 100%

:: Delete corrupted file '/var/cache/pacman/pkg/aurutils-git-10b.r2.g15375b13-1-any.pkg.tar.zst' (invalid or corrupted package (checksum)) [Y/n] % 

vs.

❯ echo alad/aurutils-git | sudo pacinstall --resolve-replacements=none --no-confirm
Resolving dependencies...
Checking package conflicts...
installing alad/aurutils-git (9.6.r105.g90da0224-1 -> 10b.r2.g15375b13-1)

Download Size:      0.00 B
Installed Size:   155.83 K
Size Delta:       867.00 B
checking keys in keyring (1/1) 100%
checking package integrity (1/1) 100%
# exit 1

so that the user does not know why the pacinstall call failed with --no-confirm.

Also notice how the first command (without --no-confirm) results in an additional checking keys in keyring (0/1) 0%.

AladW avatar Jul 10 '22 15:07 AladW