print warning if apt trusted cannot be read

This commit is contained in:
Johannes 'josch' Schauer 2020-01-22 00:27:57 +01:00
parent 75428e37dd
commit c45e7d9baf
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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";