reformat with perltidy
This commit is contained in:
parent
f4a3865c00
commit
d209fb0c11
1 changed files with 20 additions and 13 deletions
21
mmdebstrap
21
mmdebstrap
|
@ -1104,8 +1104,10 @@ sub run_chroot {
|
||||||
}
|
}
|
||||||
} elsif ($type == 3 or $type == 4) {
|
} elsif ($type == 3 or $type == 4) {
|
||||||
# character/block special
|
# character/block special
|
||||||
if (any { $_ =~ '^chroot/mount(?:/dev)?$' }
|
if (
|
||||||
@{ $options->{skip} }) {
|
any { $_ =~ '^chroot/mount(?:/dev)?$' }
|
||||||
|
@{ $options->{skip} }
|
||||||
|
) {
|
||||||
info "skipping chroot/mount/dev as requested";
|
info "skipping chroot/mount/dev as requested";
|
||||||
} elsif (!$options->{canmount}) {
|
} elsif (!$options->{canmount}) {
|
||||||
warning "skipping bind-mounting ./dev/$fname";
|
warning "skipping bind-mounting ./dev/$fname";
|
||||||
|
@ -1164,8 +1166,10 @@ sub run_chroot {
|
||||||
}
|
}
|
||||||
} elsif ($type == 5) {
|
} elsif ($type == 5) {
|
||||||
# directory
|
# directory
|
||||||
if (any { $_ =~ '^chroot/mount(?:/dev)?$' }
|
if (
|
||||||
@{ $options->{skip} }) {
|
any { $_ =~ '^chroot/mount(?:/dev)?$' }
|
||||||
|
@{ $options->{skip} }
|
||||||
|
) {
|
||||||
info "skipping chroot/mount/dev as requested";
|
info "skipping chroot/mount/dev as requested";
|
||||||
} elsif (!$options->{canmount}) {
|
} elsif (!$options->{canmount}) {
|
||||||
warning "skipping bind-mounting ./dev/$fname";
|
warning "skipping bind-mounting ./dev/$fname";
|
||||||
|
@ -1272,7 +1276,8 @@ sub run_chroot {
|
||||||
# set because if we mount it before, then base-files will not be able
|
# set because if we mount it before, then base-files will not be able
|
||||||
# to extract those
|
# to extract those
|
||||||
if ( (any { $_ eq $options->{mode} } ('root', 'unshare'))
|
if ( (any { $_ eq $options->{mode} } ('root', 'unshare'))
|
||||||
&& (any { $_ =~ '^chroot/mount(?:/sys)?$' } @{ $options->{skip} })) {
|
&& (any { $_ =~ '^chroot/mount(?:/sys)?$' } @{ $options->{skip} }))
|
||||||
|
{
|
||||||
info "skipping chroot/mount/sys as requested";
|
info "skipping chroot/mount/sys as requested";
|
||||||
} elsif ((any { $_ eq $options->{mode} } ('root', 'unshare'))
|
} elsif ((any { $_ eq $options->{mode} } ('root', 'unshare'))
|
||||||
&& !$options->{canmount}) {
|
&& !$options->{canmount}) {
|
||||||
|
@ -1344,8 +1349,10 @@ sub run_chroot {
|
||||||
} else {
|
} else {
|
||||||
error "unknown mode: $options->{mode}";
|
error "unknown mode: $options->{mode}";
|
||||||
}
|
}
|
||||||
if ((any { $_ eq $options->{mode} } ('root', 'unshare'))
|
if (
|
||||||
&& (any { $_ =~ '^chroot/mount(?:/proc)?$' } @{ $options->{skip} })) {
|
(any { $_ eq $options->{mode} } ('root', 'unshare'))
|
||||||
|
&& (any { $_ =~ '^chroot/mount(?:/proc)?$' } @{ $options->{skip} })
|
||||||
|
) {
|
||||||
info "skipping chroot/mount/proc as requested";
|
info "skipping chroot/mount/proc as requested";
|
||||||
} elsif ((any { $_ eq $options->{mode} } ('root', 'unshare'))
|
} elsif ((any { $_ eq $options->{mode} } ('root', 'unshare'))
|
||||||
&& !$options->{canmount}) {
|
&& !$options->{canmount}) {
|
||||||
|
|
Loading…
Reference in a new issue