Fixed bug #46231: {%} with --pipepart broken.

This commit is contained in:
Ole Tange 2015-10-17 17:10:04 +02:00
parent da9043fc65
commit 9636f9f249
2 changed files with 5 additions and 3 deletions

View file

@ -123,9 +123,9 @@ if($opt::pipepart) {
$opt::blocksize = 1 + $size / $Global::max_jobs_running;
}
@Global::cat_partials = map { pipe_part_files($_) } @opt::a;
# Unget the command as many times as there are parts
$Global::JobQueue->{'commandlinequeue'}->unget(
map { $Global::JobQueue->{'commandlinequeue'}->get() } @Global::cat_partials
# Unget the empty arg as many times as there are parts
$Global::JobQueue->{'commandlinequeue'}{'arg_queue'}->unget(
map { [Arg->new("\0")] } @Global::cat_partials
);
}
if($opt::eta or $opt::bar or $opt::shuf or $Global::halt_pct) {

View file

@ -517,5 +517,7 @@ bug #46231: {%} with --pipepart broken. Should give 1+2
1
2
1
echo '**'
**
### 1 .par file from --files expected
1