fixed preloaded app icon path.
authorDongeup Ham <dongeup.ham@samsung.com>
Sat, 5 Jan 2013 08:20:52 +0000 (17:20 +0900)
committerDongeup Ham <dongeup.ham@samsung.com>
Sat, 5 Jan 2013 08:20:52 +0000 (17:20 +0900)
Change-Id: Ice1acb8e357cf3c96507e3077f4fdf1d43ee6c80
Signed-off-by: Dongeup Ham <dongeup.ham@samsung.com>
inc/InstallerDefs.h
src/Installer/PreloadedInstaller.cpp

index dea52df..e57592b 100755 (executable)
@@ -21,7 +21,7 @@
 #ifndef _INSTALLER_DEFS_H_
 #define _INSTALLER_DEFS_H_
 
-#define OSP_INSTALLER_VERSION "osp-installer version = [2013/01/04]_RC[1]"
+#define OSP_INSTALLER_VERSION "osp-installer version=20130105.1"
 
 #define DIR_BIN                                L"/bin"
 #define DIR_INFO                       L"/info"
index 10a2cf6..948c8a5 100755 (executable)
@@ -94,15 +94,22 @@ PreloadedInstaller::OnInit(void)
 
        srcPath = path + DIR_SHARED;
        destPath = destRootPath + DIR_SHARED;
-       InstallerUtil::CopyDirectory(srcPath, destPath);
+       if (File::IsFileExist(srcPath) == true)
+       {
+               InstallerUtil::CopyDirectory(srcPath, destPath);
+       }
+       else
+       {
+               Directory::Create(destPath);
+       }
 
        srcPath += DIR_RES;
        destPath += DIR_RES;
-       if (File::IsFileExist(srcPath) == false)
+       if (File::IsFileExist(destPath) == false)
        {
                srcPath = path + DIR_ICONS;
+               InstallerUtil::CreateSymlink(srcPath, destPath);
        }
-       InstallerUtil::CreateSymlink(srcPath, destPath);
 
        srcPath = path + DIR_SETTING;
        destPath = destRootPath + DIR_SETTING;