X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=NativeLauncher%2Ftool%2Ftac_installer.cc;h=7444f94ae0e8beba8118f52c385adaa3f4002c4e;hb=6ea0c495e049470e21e91a8beb2a5123ebb97583;hp=6e7d377c423969cf121799c3a2f756cfd92319d8;hpb=ad28ec22ddb18045ae65fac09feb9cb3aad19188;p=platform%2Fcore%2Fdotnet%2Flauncher.git diff --git a/NativeLauncher/tool/tac_installer.cc b/NativeLauncher/tool/tac_installer.cc index 6e7d377..7444f94 100644 --- a/NativeLauncher/tool/tac_installer.cc +++ b/NativeLauncher/tool/tac_installer.cc @@ -121,7 +121,7 @@ static bool copyAssemblyCreateSymlink(std::string binPath, std::string tacDir, s nuget_restoration = true; break; } - if (!copyFile(concatPath(binNiPath, niFile), concatPath(tac_version_dir, niFile))) { + if (exist(binNiPath) && !copyFile(concatPath(binNiPath, niFile), concatPath(tac_version_dir, niFile))) { _ERR("Failed to copy of %s", niFile.c_str()); } } @@ -131,7 +131,7 @@ static bool copyAssemblyCreateSymlink(std::string binPath, std::string tacDir, s nuget_restoration = true; break; } - if (exist(concatPath(tac_version_dir, niFile))) { + if (exist(concatPath(tac_version_dir, niFile)) && exist(binNiPath)) { bf::create_symlink(concatPath(tac_version_dir, niFile), concatPath(tacDir, niFile), error); if (error) { _ERR("Failed to create symlink %s file", concatPath(tacDir, niFile).c_str()); @@ -260,6 +260,11 @@ int tacInstall(const std::string& pkgId, tac_state state, bool tacForce) } std::string binPath = concatPath(rootPath, "bin"); + if (exist(concatPath(binPath, PRE_COMPILED_PACKAGE_FILE))) { + _INFO("The %s is a Pre-Compiled package. So, skip the TAC", pkgId.c_str()); + return 0; + } + std::string metaValue = getMetadataValue(pkgId, TAC_METADATA_KEY); if (!tacForce) { if (metaValue.empty()) { @@ -492,6 +497,11 @@ int tacUpgrade(const std::string& pkgId, tac_state state, bool tacForce) } std::string binPath = concatPath(rootPath, "bin"); + if (exist(concatPath(binPath, PRE_COMPILED_PACKAGE_FILE))) { + _INFO("The %s is a Pre-Compiled package. So, skip the TAC", pkgId.c_str()); + state = TAC_STATE_REMOVED; + } + if (state == TAC_STATE_REMOVED) { _INFO("Skipped to parse of deps.json"); } else { //TAC_STATE_UPGRADE