Specifies that returned information should relate to a flight in which
a particular job existed and passed. The option can be repeated if
desired (to specify flights in which _all_ those jobs passed).
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: New patch
my @blessings= split /\,/, $1;
push @conds_vars, @blessings;
push @conds, "(". (join " OR ", map { "blessing=?" } @blessings). ")";
+ } elsif (m/^--pass-job=(.*)$/) {
+ push @conds_vars, $1;
+ push @conds, <<END;
+ EXISTS
+ (SELECT 1
+ FROM jobs j
+ WHERE j.job = ?
+ AND j.flight = flights.flight
+ AND j.status = 'pass')
+END
} elsif (m/^--print-revision=(.*)$/) {
die if $prrev;
$prrev= $1;