do not fail during cleanup if /etc/apt/apt.conf.d/00mmdebstrap got removed, only warn

This commit is contained in:
Johannes Schauer Marin Rodrigues 2024-01-23 07:48:12 +01:00
parent dd94ee3b84
commit d9f9c64ac2
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -3112,7 +3112,7 @@ sub run_cleanup() {
} else {
# clean up temporary configuration file
unlink "$options->{root}/etc/apt/apt.conf.d/00mmdebstrap"
or error "failed to unlink /etc/apt/apt.conf.d/00mmdebstrap: $!";
or warning "failed to unlink /etc/apt/apt.conf.d/00mmdebstrap: $!";
if (defined $ENV{APT_CONFIG} && -e $ENV{APT_CONFIG}) {
unlink $ENV{APT_CONFIG}