|
|
@ -1154,9 +1154,6 @@ sub setup {
|
|
|
|
# clean up temporary configuration file
|
|
|
|
# clean up temporary configuration file
|
|
|
|
unlink "$options->{root}/etc/apt/apt.conf.d/00mmdebstrap" or die "failed to unlink /etc/apt/apt.conf.d/00mmdebstrap: $!";
|
|
|
|
unlink "$options->{root}/etc/apt/apt.conf.d/00mmdebstrap" or die "failed to unlink /etc/apt/apt.conf.d/00mmdebstrap: $!";
|
|
|
|
|
|
|
|
|
|
|
|
# apt since 1.6 creates the auxfiles directory. If apt inside the chroot
|
|
|
|
|
|
|
|
# is older than that, then it will not know how to clean it.
|
|
|
|
|
|
|
|
rmdir "$options->{root}/var/lib/apt/lists/auxfiles" or die "cannot rmdir /var/lib/apt/lists/auxfiles: $!";
|
|
|
|
|
|
|
|
# if there is no apt inside the chroot, clean it from the outside
|
|
|
|
# if there is no apt inside the chroot, clean it from the outside
|
|
|
|
print STDERR "I: cleaning package lists and apt cache...\n";
|
|
|
|
print STDERR "I: cleaning package lists and apt cache...\n";
|
|
|
|
if ($options->{variant} eq 'essential') {
|
|
|
|
if ($options->{variant} eq 'essential') {
|
|
|
|