From 8abb93633c27d36c048e56cf790489d8e93fdad4 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sat, 4 Jan 2020 00:59:22 +0100 Subject: [PATCH] warn that creating tarball might also fail in proot mode for extract and custom variants --- mmdebstrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index 6f99148..c726e46 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -2686,8 +2686,8 @@ sub main() { $options->{maketar} = 0; if (defined $tar_compressor or $options->{target} =~ /\.tar$/ or $options->{target} eq '-') { $options->{maketar} = 1; - if (any { $_ eq $options->{variant} } ('extract', 'custom') and $options->{mode} eq 'fakechroot') { - info "creating a tarball in fakechroot mode might fail in extract and custom variants because there might be no tar inside the chroot"; + if (any { $_ eq $options->{variant} } ('extract', 'custom') and any { $_ eq $options->{mode} } ('fakechroot', 'proot')) { + info "creating a tarball in fakechroot mode or proot mode might fail in extract and custom variants because there might be no tar inside the chroot"; } # try to fail early if target tarball cannot be opened for writing if ($options->{target} ne '-') {