From 548130867b1fbed31be4e7ec198bf604220bb231 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 15 Feb 2019 11:32:44 +0100 Subject: [PATCH] do not run another apt-get pass with custom variant --- mmdebstrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index 7e3adb8..5cdb488 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1320,9 +1320,9 @@ sub setup { } } elsif (any { $_ eq $options->{mode} } ('root', 'unshare', 'fakechroot', 'proot')) { - if ($options->{variant} eq 'extract') { + if (any { $_ eq $options->{variant} } ('extract', 'custom')) { # nothing to do - } elsif (any { $_ eq $options->{variant} } ('custom', 'essential', 'apt', 'standard', 'important', 'required', 'buildd', 'minbase')) { + } elsif (any { $_ eq $options->{variant} } ('essential', 'apt', 'standard', 'important', 'required', 'buildd', 'minbase')) { if ($options->{mode} eq 'fakechroot') { # this borrows from and extends # /etc/fakechroot/debootstrap.env and /etc/fakechroot/chroot.env