Bug 381172, use DisableCompleteJump to override of code that forces complete update, r=preed

This commit is contained in:
nrthomas%gmail.com 2007-05-23 09:58:30 +00:00
Родитель ab286f6f55
Коммит 20a9494800
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -430,6 +430,13 @@ sub CreateUpdateGraph
$u_config->{$u_key}->{'rc'} = {};
if (defined($u_rcInfo)) {
foreach my $channel (keys(%{$u_rcInfo})) {
# Such a hack... this isn't a channel name at all; it's a config
# variable, to control the behavior of sending the complete
# "jump" updates to the RC channels...
if ($channel eq 'DisableCompleteJump') {
$u_config->{$u_key}->{'DisableCompleteJump'} = $u_rcInfo->{$channel};
next;
}
$u_config->{$u_key}->{'rc'}->{$channel} = $u_rcInfo->{$channel};
}
}

Просмотреть файл

@ -1077,6 +1077,11 @@ sub CreatePartialPatchinfo {
my $complete_url = $complete->{'url'};
my $currentUpdateRcInfo = $u_config->{$u}->{'rc'};
# Used in the case where we never released rc1, so rc2 or 3 or 4 is
# actually the "first" release rc.
my $disableCompleteJumpForRcs =
exists($u_config->{$u}->{'DisableCompleteJump'}) &&
int($u_config->{$u}->{'DisableCompleteJump'});
my @channels = @{$u_config->{$u}->{'all_channels'}};
my $channel = $u_config->{$u}->{'channel'};
@ -1162,6 +1167,7 @@ sub CreatePartialPatchinfo {
$currentUpdateRcInfo->{$channel};
$serveCompleteUpdateToRcs =
(!$disableCompleteJumpForRcs) &&
(int($currentUpdateRcInfo->{$channel}) > 1);
if ($serveCompleteUpdateToRcs) {