From 473bc354ae0aab3f3455aa6b9b27dd92fb170470 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 28 Feb 2019 12:22:42 +0100 Subject: [PATCH] only set apt Dir config option instead of setting apt directories individually --- mmdebstrap | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index 537273e..539a1f8 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -941,10 +941,7 @@ sub setup { } else { print $conf "Apt::Architectures \"$options->{nativearch}\";\n"; } - print $conf "Dir::Etc \"$options->{root}/etc/apt\";\n"; - print $conf "Dir::State \"$options->{root}/var/lib/apt\";\n"; - print $conf "Dir::Cache \"$options->{root}/var/cache/apt\";\n"; - print $conf "Dir::Log \"$options->{root}/var/log/apt\";\n"; + print $conf "Dir \"$options->{root}\";\n"; # for authentication, use the keyrings from the host print $conf "Dir::Etc::Trusted \"/etc/apt/trusted.gpg\";\n"; print $conf "Dir::Etc::TrustedParts \"/etc/apt/trusted.gpg.d\";\n";