Replace gpg --update-trustdb by gpg --check-trustdb

Both arguments do the same but --check-trustdb avoids user interaction
and is implemented in gpg-from-sq.

Closes: #1077600
Suggested-by: Blair Noctis <n@sail.ng>
This commit is contained in:
Jochen Sprickerhof 2024-12-01 12:21:55 +01:00 committed by Johannes Schauer Marin Rodrigues
parent e5d86136ed
commit cf2b178f99
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -6391,7 +6391,7 @@ sub main() {
}
# initialize gpg trustdb with empty one
{
0 == system(@gpgcmd, '--update-trustdb')
0 == system(@gpgcmd, '--check-trustdb')
or error "gpg failed to initialize trustdb:: $?";
}
if (!-d $options->{apttrustedparts}) {