From c45e7d9bafede8953c87db7d2f0ccc8b15acbb92 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Wed, 22 Jan 2020 00:27:57 +0100 Subject: [PATCH] print warning if apt trusted cannot be read --- mmdebstrap | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index 1bcec9a..d2539f4 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1175,6 +1175,13 @@ sub setup { } } + if (-e $options->{apttrusted} && !-r $options->{apttrusted}) { + warning "cannot read $options->{apttrusted}"; + } + if (-e $options->{apttrustedparts} && !-r $options->{apttrustedparts}) { + warning "cannot read $options->{apttrustedparts}"; + } + my ($conf, $tmpfile) = tempfile(UNLINK => 1) or error "cannot open apt.conf: $!"; print $conf "Apt::Architecture \"$options->{nativearch}\";\n";