SM : Don't add version by default in app install
[platform/core/test/security-tests.git] / src / security-manager-tests / common / scoped_installer.h
index 27b96ee..3dcf080 100644 (file)
@@ -48,7 +48,8 @@ public:
             instReq.setInstallType(m_appInstallHelper.getInstallType());
         if (requestUid)
             instReq.setUid(m_appInstallHelper.getUID());
-        instReq.setAppTizenVersion(m_appInstallHelper.getVersion());
+        if (!m_appInstallHelper.getVersion().empty())
+            instReq.setAppTizenVersion(m_appInstallHelper.getVersion());
         if (!m_appInstallHelper.getAuthor().empty())
             instReq.setAuthorId(m_appInstallHelper.getAuthor());
         for (const auto& typePaths : m_appInstallHelper.getDirsMap())