From d9f9c64ac2064bcdb0f6ac5c489a008cfdc6cfbb Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Tue, 23 Jan 2024 07:48:12 +0100 Subject: [PATCH] do not fail during cleanup if /etc/apt/apt.conf.d/00mmdebstrap got removed, only warn --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index afe0743..b315b76 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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}