ErrorPackageNotFound, ///<
ErrorPackageInvalid, ///< invalid widget package
ErrorPackageLowerVersion, ///< given version is lower
+ ErrorPackageTheSameVersion, ///< given version is the same
ErrorPackageExecutableNotFound,
ErrorManifestNotFound = 11, ///<
} else if (m_result == ConfigureResult::Failed_LowerVersion) {
ThrowMsg(Jobs::WidgetInstall::Exceptions::PackageLowerVersion,
"package version is lower than installed version");
+ } else if (m_result == ConfigureResult::Failed_TheSameVersion) {
+ ThrowMsg(Jobs::WidgetInstall::Exceptions::PackageTheSameVersion,
+ "package version is the same as installed version");
} else if (m_result == ConfigureResult::Failed_AlreadyInstalled) {
ThrowMsg(Jobs::WidgetInstall::Exceptions::PackageAlreadyInstalled,
"package is already installed");
LogInfo("incoming version = '" << update.incomingVersion);
LogInfo("Tizen AppID = " << update.tzAppId);
+ if (update.incomingVersion < update.existingVersion) {
+ LogError("Widget is older than installed one.");
+ return ConfigureResult::Failed_LowerVersion;
+ }
+
+ if (update.incomingVersion == update.existingVersion) {
+ LogError("Widget is already installed in this version.");
+ return ConfigureResult::Failed_TheSameVersion;
+ }
+
// Check running state
bool isRunning = false;
int ret =
DECLARE_JOB_EXCEPTION(Base, RDSDeltaFailure, ErrorPackageInvalid)
DECLARE_JOB_EXCEPTION(Base, PackageLowerVersion, ErrorPackageLowerVersion)
+DECLARE_JOB_EXCEPTION(Base, PackageTheSameVersion, ErrorPackageTheSameVersion)
DECLARE_JOB_EXCEPTION(Base, ManifestInvalid, ErrorManifestInvalid)