Skip to content

Commit

Permalink
Make kiwi_profile variable available for both kiwi versions
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcassany committed Oct 10, 2016
1 parent b4fb36b commit 82e5414
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build-recipe-kiwi
Expand Up @@ -457,12 +457,13 @@ perform_image_bundle() {
local profile=$3
local bundle_call

kiwi_profile=""
if [ "$profile" != "__not__set" ]; then
kiwi_profile="${profile}-"
fi

rm -rf "/$TOPDIR/KIWI.bundle"
if [ "$legacy" = "true" ]; then
kiwi_profile=""
if [ "$profile" != "__not__set" ]; then
kiwi_profile="${profile}-"
fi
if [ "$legacy" = "true" ]; then
bundle_call="/usr/sbin/kiwi --bundle-build $TOPDIR/KIWI-$imgtype"
bundle_call="$bundle_call -d /$TOPDIR/KIWI.bundle/"
bundle_call="$bundle_call --bundle-id ${kiwi_profile}Build$RELEASE"
Expand Down

0 comments on commit 82e5414

Please sign in to comment.