diff options
author | Duyoung Jang <duyoung.jang@samsung.com> | 2013-04-12 16:13:02 +0900 |
---|---|---|
committer | Duyoung Jang <duyoung.jang@samsung.com> | 2013-04-12 16:13:02 +0900 |
commit | 24948b8f948d23730bfc9cf2554734fcc227624a (patch) | |
tree | 31d52cdd231668ecaeb38efbfd4c9f28cc00e4d1 /src/Installer | |
parent | 6d0d4687bb6b81cb40cb05f4361dfe813888ff2d (diff) | |
download | installer-24948b8f948d23730bfc9cf2554734fcc227624a.tar.gz installer-24948b8f948d23730bfc9cf2554734fcc227624a.tar.bz2 installer-24948b8f948d23730bfc9cf2554734fcc227624a.zip |
Change DirectoryInstaller signature check logic
Change-Id: I890b771b4f2caed8723d880dc7d9b63ee86bfd7f
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
Diffstat (limited to 'src/Installer')
-rwxr-xr-x | src/Installer/DirectoryInstaller.cpp | 8 | ||||
-rwxr-xr-x | src/Installer/PreloadedInstaller.cpp | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/Installer/DirectoryInstaller.cpp b/src/Installer/DirectoryInstaller.cpp index b1626e9..f008ee2 100755 --- a/src/Installer/DirectoryInstaller.cpp +++ b/src/Installer/DirectoryInstaller.cpp @@ -71,6 +71,14 @@ InstallerError DirectoryInstaller::OnInit(void) { InstallationContext* pContext = GetContext(); + + if ((File::IsFileExist(pContext->GetSignatureXmlPath()) == true) && + (File::IsFileExist(pContext->GetAuthorSignatureXmlPath()) == true)) + { + AppLog("[VerifySignature] VerificationMode ON"); + pContext->__isVerificationMode = true; + } + String installPath = pContext->__installDir; String newInstallPath; diff --git a/src/Installer/PreloadedInstaller.cpp b/src/Installer/PreloadedInstaller.cpp index 20585de..d1676bc 100755 --- a/src/Installer/PreloadedInstaller.cpp +++ b/src/Installer/PreloadedInstaller.cpp @@ -127,9 +127,6 @@ PreloadedInstaller::OnInit(void) srcPath = path + AUTHOR_SIGNATURE_XML_FILE; destPath = destRootPath + AUTHOR_SIGNATURE_XML_FILE; InstallerUtil::CreateSymlink(srcPath, destPath); - - AppLog("[VerifySignature] VerificationMode ON"); - pContext->__isVerificationMode = true; } pContext->__installDir = destRootPath; |