add Dir::State::Status to apt config for apt << 1.3

This commit is contained in:
Johannes 'josch' Schauer 2019-04-25 08:51:42 +02:00
parent dd5214a8c8
commit 14d3a4e30f
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -949,6 +949,8 @@ sub setup {
print $conf "Apt::Architectures \"$options->{nativearch}\";\n"; print $conf "Apt::Architectures \"$options->{nativearch}\";\n";
} }
print $conf "Dir \"$options->{root}\";\n"; print $conf "Dir \"$options->{root}\";\n";
# not needed anymore for apt 1.3 and newer
print $conf "Dir::State::Status \"$options->{root}/var/lib/dpkg/status\";\n";
# for authentication, use the keyrings from the host # for authentication, use the keyrings from the host
print $conf "Dir::Etc::Trusted \"/etc/apt/trusted.gpg\";\n"; print $conf "Dir::Etc::Trusted \"/etc/apt/trusted.gpg\";\n";
print $conf "Dir::Etc::TrustedParts \"/etc/apt/trusted.gpg.d\";\n"; print $conf "Dir::Etc::TrustedParts \"/etc/apt/trusted.gpg.d\";\n";