Skip to content

Commit

Permalink
[backend] support recheck events with no specified project
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Nov 21, 2012
1 parent 484861f commit 75a1384
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backend/bs_sched
Original file line number Diff line number Diff line change
Expand Up @@ -5324,9 +5324,15 @@ sub event_check {
my $changed_high = $ectx->{'changed_high'};
my $changed_dirty = $ectx->{'changed_dirty'};
my $projid = $ev->{'project'};
my $packid = $ev->{'package'};
my $repoid = $ev->{'repository'};
my %admincheck;
if (!defined($projid)) {
my $changed_low = $ectx->{'changed_low'};
for my $prp (@prps) {
$changed_low->{$prp} ||= 1;
}
return;
}
if (defined($repoid)) {
my $prp = "$projid/$repoid";
$changed_high->{$prp} ||= 1;
Expand Down

0 comments on commit 75a1384

Please sign in to comment.