Without this patch, if scratch.incremental already exsit and
scratch.{arch}.0 exists too, depanneur still need to create new
scrach.incremental buildroot
Change-Id: I26855f36eada3216c9f7ea75efe2967b93ad1301
if ($incremental == 1) {
info("Doing incremental build");
my $buildcmd = "";
- if ( ! -d "$scratch/home/abuild/rpmbuild/BUILD/$name-$version" ) {
+ if ( -d "$scratch_dir.incremental/home/abuild/rpmbuild/BUILD/$name-$version" ) {
+ $scratch = "$scratch_dir.incremental";
+ } elsif ( ! -d "$scratch/home/abuild/rpmbuild/BUILD/$name-$version" ){
debug("Build directory exists");
$scratch = "$scratch_dir.incremental";
push @args, "--stage=\"-bp\"";