From 4392f6e5dee6bd1b68d04a7fd22fa96df67f75fe Mon Sep 17 00:00:00 2001
From: Iikka Eklund <iikka.eklund@digia.com>
Date: Thu, 4 Oct 2012 09:04:26 +0300
Subject: [PATCH] Fix bug in create_installer.py namespace handling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The "namespace" itself should be considered as component name in case
of root component.

Change-Id: I0379a59942a4e792be157d1ff5a5d505c8582e8d
Reviewed-by: Johanna Äijälä <johanna.aijala@digia.com>
Reviewed-by: Simo Fält <simo.falt@digia.com>
---
 release-tools/create_installer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/release-tools/create_installer.py b/release-tools/create_installer.py
index a7bdddd..5cacd0f 100644
--- a/release-tools/create_installer.py
+++ b/release-tools/create_installer.py
@@ -726,7 +726,7 @@ def parse_component_data(configuration_file, configurations_base_path):
             SDK_COMPONENT_IGNORE_LIST.append(item)
     # parse sdk components
     for section in configuration.sections():
-        if section.startswith(PACKAGE_NAMESPACE + '.'):
+        if section.startswith(PACKAGE_NAMESPACE + '.') or section == PACKAGE_NAMESPACE:
             if section not in SDK_COMPONENT_IGNORE_LIST:
                 sdk_component = SdkComponent(section, configuration, PACKAGES_DIR_NAME_LIST, ARCHIVE_LOCATION_RESOLVER)
                 # if online installer, we are interested only about the root component!
-- 
GitLab