add --skip=output/dev
This commit is contained in:
parent
e1d0a17751
commit
b60893aa83
1 changed files with 10 additions and 2 deletions
|
@ -4150,7 +4150,11 @@ sub main() {
|
||||||
# Add ./dev as the first entries of the tar file.
|
# Add ./dev as the first entries of the tar file.
|
||||||
# We cannot add them after calling tar, because there is no
|
# We cannot add them after calling tar, because there is no
|
||||||
# way to prevent tar from writing NULL entries at the end.
|
# way to prevent tar from writing NULL entries at the end.
|
||||||
|
if (any { $_ eq 'output/dev' } @{ $options->{skip} }) {
|
||||||
|
info "skipping output/dev as requested";
|
||||||
|
} else {
|
||||||
print $devtar;
|
print $devtar;
|
||||||
|
}
|
||||||
|
|
||||||
# pack everything except ./dev
|
# pack everything except ./dev
|
||||||
0 == system('tar', @taropts, '-C', $options->{root}, '.')
|
0 == system('tar', @taropts, '-C', $options->{root}, '.')
|
||||||
|
@ -4214,7 +4218,11 @@ sub main() {
|
||||||
# Add ./dev as the first entries of the tar file.
|
# Add ./dev as the first entries of the tar file.
|
||||||
# We cannot add them after calling tar, because there is no way
|
# We cannot add them after calling tar, because there is no way
|
||||||
# to prevent tar from writing NULL entries at the end.
|
# to prevent tar from writing NULL entries at the end.
|
||||||
|
if (any { $_ eq 'output/dev' } @{ $options->{skip} }) {
|
||||||
|
info "skipping output/dev as requested";
|
||||||
|
} else {
|
||||||
print $devtar;
|
print $devtar;
|
||||||
|
}
|
||||||
|
|
||||||
if ($options->{mode} eq 'fakechroot') {
|
if ($options->{mode} eq 'fakechroot') {
|
||||||
# Fakechroot requires tar to run inside the chroot or
|
# Fakechroot requires tar to run inside the chroot or
|
||||||
|
|
Loading…
Reference in a new issue