From: Soyoung Kim Date: Mon, 24 Jun 2013 06:51:55 +0000 (+0900) Subject: remove drm code X-Git-Tag: submit/tizen_2.2/20130716.180435~1^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0c3341695f12ab555cfdaccd2630291d1bc2e5d;p=framework%2Fweb%2Fwrt-installer.git remove drm code [Issue#] N/A [Problem] N/A [Cause] N/A [Solution] remove drm code [SCMRequest] N/A --- diff --git a/src/jobs/widget_install/widget_unzip.cpp b/src/jobs/widget_install/widget_unzip.cpp index 56d1dff..1b86657 100644 --- a/src/jobs/widget_install/widget_unzip.cpp +++ b/src/jobs/widget_install/widget_unzip.cpp @@ -185,24 +185,7 @@ void WidgetUnzip::unzipProgress(const std::string &destination) std::string WidgetUnzip::decryptDrmPackage(const std::string &source) { LogInfo("Check DRM..."); - if (1 == drm_oem_sapps_is_drm_file(source.c_str(), source.length())) { - std::string decryptedFile; - size_t found = source.find_last_of(".wgt"); - if (found == std::string::npos) { - decryptedFile += source + "_tmp.wgt"; - } else { - decryptedFile += source.substr(0, source.find_last_not_of(".wgt") + - 1) + "_tmp.wgt"; - } - - LogDebug("decrypted file name : " << decryptedFile); - if (1 != drm_oem_sapps_decrypt_package(source.c_str(), source.length(), - decryptedFile.c_str(), decryptedFile.length())) { - LogError("Failed decrypt drm file"); - ThrowMsg(Exceptions::DrmDecryptFailed, source); - } - return decryptedFile; - } + // TODO : check drm return source; }