allow /etc/apt/trusted.gpg.d/ not to exist

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-09-11 21:12:14 +02:00
parent 045b56bb4e
commit 2f27eccad4
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -5011,6 +5011,10 @@ sub main() {
0 == system(@gpgcmd, '--update-trustdb')
or error "gpg failed to initialize trustdb:: $?";
}
if (!-d $options->{apttrustedparts}) {
warning "$options->{apttrustedparts} doesn't exist";
last;
}
# find all the fingerprints of the keys apt currently
# knows about
my @keyrings = ();