summaryrefslogtreecommitdiff
path: root/src/Installer
diff options
context:
space:
mode:
authorDuyoung Jang <duyoung.jang@samsung.com>2013-04-12 16:13:02 +0900
committerDuyoung Jang <duyoung.jang@samsung.com>2013-04-12 16:13:02 +0900
commit24948b8f948d23730bfc9cf2554734fcc227624a (patch)
tree31d52cdd231668ecaeb38efbfd4c9f28cc00e4d1 /src/Installer
parent6d0d4687bb6b81cb40cb05f4361dfe813888ff2d (diff)
downloadinstaller-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-xsrc/Installer/DirectoryInstaller.cpp8
-rwxr-xr-xsrc/Installer/PreloadedInstaller.cpp3
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;