only disally --include if variant is essential

This commit is contained in:
Johannes 'josch' Schauer 2018-09-20 22:42:17 +02:00
parent e027e9458f
commit bee38bcfc7
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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";
}