warn that creating tarball might also fail in proot mode for extract and custom variants

This commit is contained in:
Johannes 'josch' Schauer 2020-01-04 00:59:22 +01:00
parent 05e796cd95
commit 8abb93633c
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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 '-') {