do not run another apt-get pass with custom variant

This commit is contained in:
Johannes 'josch' Schauer 2019-02-15 11:32:44 +01:00
parent 2eed1262db
commit 548130867b
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1320,9 +1320,9 @@ sub setup {
} }
} elsif (any { $_ eq $options->{mode} } ('root', 'unshare', 'fakechroot', 'proot')) { } elsif (any { $_ eq $options->{mode} } ('root', 'unshare', 'fakechroot', 'proot')) {
if ($options->{variant} eq 'extract') { if (any { $_ eq $options->{variant} } ('extract', 'custom')) {
# nothing to do # 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') { if ($options->{mode} eq 'fakechroot') {
# this borrows from and extends # this borrows from and extends
# /etc/fakechroot/debootstrap.env and /etc/fakechroot/chroot.env # /etc/fakechroot/debootstrap.env and /etc/fakechroot/chroot.env