-#git:framework/web/wrt-installer wrt-installer_0.1.54
+#git:framework/web/wrt-installer wrt-installer_0.1.55
Name: wrt-installer
Summary: Installer for tizen Webruntime
-Version: 0.1.54
+Version: 0.1.55
Release: 1
Group: Development/Libraries
License: Apache License, Version 2.0
};
const char* const ApplicationParser::REGEXP_PACKAGE = "[0-9A-Za-z]{10}";
-const char* const ApplicationParser::REGEXP_ID = "([0-9A-Za-z]{10})\\.[0-9A-Za-z]{2,52}";
+const char* const ApplicationParser::REGEXP_ID = "([0-9A-Za-z]{10})\\.[0-9A-Za-z]{1,52}";
const char* const ApplicationParser::REGEXP_VERSION = "\\d+\\.\\d+(\\.\\d+)?";
class SplashParser : public ElementParser
LogWarning("[DB Update Task] Aborting... (DB Clean)");
Try
{
- WidgetDAO::restoreUpdateWidget(m_backAppId,
- m_context.widgetConfig.tzAppid);
+ if (m_context.isUpdateMode) {
+ WidgetDAO::restoreUpdateWidget(m_backAppId,
+ m_context.widgetConfig.tzAppid);
+ } else {
+ WidgetDAO::unregisterWidget(m_context.widgetConfig.tzAppid);
+ }
LogDebug("Cleaning DB successful!");
}
Catch(DPL::DB::SqlConnection::Exception::Base)
"[" << DPL::GetErrnoString(error) << "]");
}
const std::size_t fileSize = info.st_size;
+ if (0 == fileSize) {
+ LogDebug(fileName << " size is 0, so encryption is skiped");
+ return;
+ }
DPL::ScopedFClose inFile(openFile(fileName, "r"));
DPL::ScopedFClose outFile(openFile(encFile, "w"));
// Remove user data directory if preload web app.
std::string userData = m_context.locations->getUserDataRootDir();
if (0 == access(userData.c_str(), F_OK)) {
- WrtUtilRemove(userData);
+ if (!WrtUtilRemove(userData)) {
+ ThrowMsg(Exceptions::RemovingFolderFailure,
+ "Error occurs during removing user data directory");
+ }
}
}
Assert(isProcessable() && "Wrong usage");
if (!allowed) {
m_currentFeature->rejected = true;
- // TODO: checking tizen specification regarding security for insatlling
- // m_rejected = true;
+ m_rejected = true;
}
}
+++ /dev/null
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"
- id="http://test.samsung.com/widget/wac/tizen_appcontrol"
- version="1.0.0"
- min-version="1.0">
- <name short="AppControl">app-control</name>
- <icon src="icon.png" height="75" width="75"/>
- <tizen:app-control>
- <tizen:src name="edit1.html"/>
- <tizen:operation name="http://tizen.org/appcontrol/operation/edit"/>
- <tizen:mime name="image/jpg" />
- </tizen:app-control>
- <tizen:app-control>
- <tizen:src name="edit2.html"/>
- <tizen:operation name="http://tizen.org/appcontrol/operation/view"/>
- <tizen:mime name="audio/ogg" />
- </tizen:app-control>
- <tizen:app-control>
- <tizen:src name="edit3.html"/>
- <tizen:operation name="http://tizen.org/appcontrol/operation/call"/>
- <tizen:mime name="image/png" />
- </tizen:app-control>
- <tizen:app-control>
- <tizen:src name="edit4.html"/>
- <tizen:operation name="http://tizen.org/appcontrol/operation/send"/>
- <tizen:mime name="text/css" />
- </tizen:app-control>
- <content src="index.html" />
-</widget>
+++ /dev/null
-<html>
- <head>
- <title>Disposition attribute</title>
- </head>
- <body style="background-color:gray">
- <h1>Check database.</h1>
- </body>
-</html>