Allow the new service mode "buildtime"
This mode is used within the build host and does not change the sources repository Is is thus no risk to have it enabled for the products.
This commit is contained in:
parent
ce4db1e010
commit
8bbdf60a21
@ -21,8 +21,8 @@ if (-f "$dir/_service") {
|
|||||||
my $service = XMLin("$dir/_service", ForceArray => ['service']);
|
my $service = XMLin("$dir/_service", ForceArray => ['service']);
|
||||||
while( my ($name, $s) = each %{$service->{service}} ) {
|
while( my ($name, $s) = each %{$service->{service}} ) {
|
||||||
my $mode = $s->{mode} || '';
|
my $mode = $s->{mode} || '';
|
||||||
next if ($mode eq "localonly" || $mode eq "disabled");
|
next if ($mode eq "localonly" || $mode eq "disabled" || $mode eq "buildtime");
|
||||||
print "Services are only allowed if they are mode='localonly'. Please change the mode of $name and use osc service localrun\n";
|
print "Services are only allowed if they are mode='localonly', 'disabled' or 'buildtime'. Please change the mode of $name and use osc service localrun\n";
|
||||||
$ret = 1;
|
$ret = 1;
|
||||||
}
|
}
|
||||||
# move it away to have full service from source validator
|
# move it away to have full service from source validator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user