Ignore external storage error while uninstalling pkg 46/100646/4
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 29 Nov 2016 01:34:03 +0000 (10:34 +0900)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Wed, 30 Nov 2016 07:39:59 +0000 (23:39 -0800)
- If error has happened when acquiring external storage
for uninstall, it will be ignored

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/100515
[pkgmgr-server] : https://review.tizen.org/gerrit/100647

Change-Id: I30cda542582ea5b166b8df51eeab82f3edac54b4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/shared_dirs.cc

index a5b59f8..779104e 100644 (file)
@@ -348,8 +348,9 @@ bool PerformExternalDirectoryDeletionForUser(uid_t user,
                                              const std::string& pkgid) {
   bf::path storage_path = GetExternalCardPath();
   if (!bf::exists(storage_path)) {
-    LOG(WARNING) << "External storage (SD Card) is not mounted.";
-    return false;
+    LOG(WARNING) << "External storage (SD Card) is not mounted. "
+        << "It will be ignored";
+    return true;
   }
 
   bf::path storage_apps_path = bf::path(storage_path) / "apps";