Add another condition for external pkgs 59/134359/1 accepted/tizen/3.0/common/20170619.133412 accepted/tizen/3.0/ivi/20170619.075729 accepted/tizen/3.0/mobile/20170619.075639 accepted/tizen/3.0/tv/20170619.075656 accepted/tizen/3.0/wearable/20170619.075713 submit/tizen_3.0/20170616.060706
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 13 Jun 2017 09:57:36 +0000 (18:57 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 16 Jun 2017 06:15:47 +0000 (06:15 +0000)
- Skip if destination file/folder is symlink
to enable manifestdirectinstall on externally installed pkgs

Change-Id: Ia10cf4bc6e080c9e31f36fe0ae46c0a3a240b498
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
(cherry picked from commit 8dc5812779199138c796d5a10ab1158a8648a4f6)

src/common/shared_dirs.cc

index d7000acb3cf85c9b923ec162660ba1e4ab240c25..3b4c8fd91496dcc47d4a9c3422d0f0e3c5201208 100644 (file)
@@ -247,7 +247,7 @@ bool CreateSymlinkFiles(const bf::path& src_dir, const bf::path& dst_dir) {
         continue;
       }
     }
-    if (bf::exists(dst_path)) {
+    if (bf::exists(dst_path) || bf::is_symlink(symlink_status(dst_path))) {
       LOG(WARNING) << "dst_path exist, skip : " << dst_path;
       continue;
     }