From 9e8172ff500f54267339353f1b47fcadb9d2a6ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 2 Feb 2010 16:26:35 +0100 Subject: [PATCH] redo the kiwi 4.1 support, we need to parse the type elements differently to support also the live types --- Build/Kiwi.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Build/Kiwi.pm b/Build/Kiwi.pm index 9dd98ec..d10e498 100644 --- a/Build/Kiwi.pm +++ b/Build/Kiwi.pm @@ -113,7 +113,13 @@ sub kiwiparse { } for my $type (@{$preferences->{'type'} || []}) { next unless @{$preferences->{'type'}} == 1 || !$type->{'optional'}; - push @types, $type->{'_content'}; + if (defined $type->{'image'}) { + # for kiwi 4.1 + push @types, $type->{'image'} + }else{ + # for kiwi 3.8 and before + push @types, $type->{'_content'} + } push @packages, "kiwi-filesystem:$type->{'filesystem'}" if $type->{'filesystem'}; if (defined $type->{'boot'}) { if ($type->{'boot'} =~ /^obs:\/\/\/?([^\/]+)\/([^\/]+)\/?$/) { @@ -196,8 +202,6 @@ sub kiwiparse { push @packages, "kiwi-packagemanager:$packman"; } else { push @packages, "kiwi-packagemanager:instsource"; - # required for kiwi 4.1 and later, build_kiwi.sh is checking via this the type - push @types, "product"; } $ret->{'exclarch'} = [ unify(@requiredarch) ] if @requiredarch; -- 2.7.4