do force_clean before pre_install. 48/74248/3 accepted/tizen/common/20160616.151533 accepted/tizen/ivi/20160616.002906 accepted/tizen/mobile/20160616.002835 accepted/tizen/tv/20160616.002818 accepted/tizen/wearable/20160616.002731 submit/tizen/20160615.073423
authorjongmyeongko <jongmyeong.ko@samsung.com>
Mon, 13 Jun 2016 10:15:55 +0000 (19:15 +0900)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Tue, 14 Jun 2016 10:13:04 +0000 (19:13 +0900)
Change-Id: Ida2443346113a07ae7f555f1621ba55edd91a8c2
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/common/external_storage.cc

index 233b1ea..5b0d757 100644 (file)
@@ -155,6 +155,11 @@ bool ExternalStorage::Initialize(
   int ret = 0;
   switch (type_) {
   case RequestType::Install:
+    ret = handle_->interface.client_usr_force_clean(pkgid_.c_str(), uid_);
+    if (ret) {
+      LOG(ERROR) << "force_clean failed";
+      break;
+    }
     ret = handle_->interface.client_usr_pre_install(pkgid_.c_str(), glist,
                                                     external_size, uid_);
     break;