{
lock($DETACHING);
threads->detach() if ! threads->is_detached();
+ $dirty = 1;
+ @running = grep { $_ ne "$name"} @running;
+ push(@done, $name);
}
info("finished incremental building $name");
info("building log can be found here: $scratch/.build.log");
- exit(0);
- } else {
- push @args, "--root $scratch";
- push @args, "--clean" if (-e "$scratch/not-ready");
- push @args, $redirect;
+ $packages_built = 1;
+ return 0;
}
+ push @args, "--root $scratch";
+ push @args, "--clean" if (-e "$scratch/not-ready");
+ push @args, $redirect;
+
$cmd = join(" ", @args);
debug($cmd);
if (my_system ($cmd) == 0 ) {