- Skip making bin directories when dest directory is symlink
Change-Id: Iebb3df57b62d5239ec43b5db7c365dfa815de1f2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
(cherry picked from commit
5ff02ea6b074b3d68efec48821bce65d8b51f503)
bf::path bindir = context->pkg_path.get() /
bf::path("bin");
LOG(DEBUG) << "Creating dir: " << bindir;
- if (!common_installer::CreateDir(bindir)) {
+ if (!bf::is_symlink(symlink_status(bindir)) &&
+ !common_installer::CreateDir(bindir)) {
LOG(ERROR) << "Directory creation failure: " << bindir;
return false;
}