* Basic release management: releases are now dynamically computed as
database queries from a set of jobs that have to be in a release.
E.g. a patchelf release might consist of the jobs "tarball", "build",
and "rpm_fedora10i386". Here the first job ("tarball") is the
primary job: all the others have it as an input. The primary job
supplies the identity of the release.
This commit is contained in:
@@ -276,7 +276,7 @@ print STDERR "performing build $buildId\n";
|
||||
# have the lock taken away.
|
||||
my $build;
|
||||
$db->txn_do(sub {
|
||||
($build) = $db->resultset('Builds')->search({id => $buildId});
|
||||
$build = $db->resultset('Builds')->find($buildId);
|
||||
die "build $buildId doesn't exist" unless defined $build;
|
||||
if ($build->schedulingInfo->busy != 0 && $build->schedulingInfo->locker != getppid) {
|
||||
die "build $buildId is already being built";
|
||||
|
||||
Reference in New Issue
Block a user