From 2f27eccad4edc76bac04da3e4fdbdbf5ed3d0c9b Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 11 Sep 2022 21:12:14 +0200 Subject: [PATCH] allow /etc/apt/trusted.gpg.d/ not to exist --- mmdebstrap | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index 5fb0737..1450680 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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 = ();