do not fail during cleanup if /etc/apt/apt.conf.d/00mmdebstrap got removed, only warn
This commit is contained in:
parent
dd94ee3b84
commit
d9f9c64ac2
1 changed files with 1 additions and 1 deletions
|
@ -3112,7 +3112,7 @@ sub run_cleanup() {
|
||||||
} else {
|
} else {
|
||||||
# clean up temporary configuration file
|
# clean up temporary configuration file
|
||||||
unlink "$options->{root}/etc/apt/apt.conf.d/00mmdebstrap"
|
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}) {
|
if (defined $ENV{APT_CONFIG} && -e $ENV{APT_CONFIG}) {
|
||||||
unlink $ENV{APT_CONFIG}
|
unlink $ENV{APT_CONFIG}
|
||||||
|
|
Loading…
Reference in a new issue