diff options
author | Jan Blunck <jblunck@infradead.org> | 2014-07-04 15:50:12 +0200 |
---|---|---|
committer | Jan Blunck <jblunck@infradead.org> | 2014-07-04 15:50:12 +0200 |
commit | 8121592b764592a811c2c56ef7310c1afae05d26 (patch) | |
tree | d75554e79945e4b43bdde4b2b053c610154b725f | |
parent | 0f692ec9e6a859c71fe252f308a5033af70e6c80 (diff) |
Correctly return project configuration based on specified 'type'
It is required to explicitly state the type in the project config:
%if "%_repository" == "images"
Type: livebuild
%endif
Signed-off-by: Jan Blunck <jblunck@infradead.org>
-rw-r--r-- | Build.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -332,7 +332,7 @@ sub read_config { } if (!$config->{'binarytype'}) { $config->{'binarytype'} = 'rpm' if $config->{'type'} eq 'spec' || $config->{'type'} eq 'kiwi'; - $config->{'binarytype'} = 'deb' if $config->{'type'} eq 'dsc'; + $config->{'binarytype'} = 'deb' if $config->{'type'} eq 'dsc' || $config->{'type'} eq 'livebuild'; $config->{'binarytype'} = 'arch' if $config->{'type'} eq 'arch'; $config->{'binarytype'} ||= 'UNDEFINED'; } |