From bee38bcfc725a42b86c64025d768acf9c4bf5fa4 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 20 Sep 2018 22:42:17 +0200 Subject: [PATCH] only disally --include if variant is essential --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index 58d968a..c18f5cd 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -923,7 +923,7 @@ sub main() { die "invalid mode. Choose from auto, root, fakechroot, proot, unshare"; } - if (grep { $_ eq $options->{variant} } ('essential', 'required') and defined $options->{include}) { + if ($options->{variant} eq 'essential' and defined $options->{include}) { die "cannot install extra packages in essential and required variants because apt is missing"; }