Fix MenuIconN() API
authorDuyoung Jang <duyoung.jang@samsung.com>
Wed, 17 Apr 2013 13:19:02 +0000 (22:19 +0900)
committerDuyoung Jang <duyoung.jang@samsung.com>
Wed, 17 Apr 2013 13:19:02 +0000 (22:19 +0900)
Change-Id: Idd8e3b1564fa9d1bda9368e74ab6e157413a8355
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
src/app/package/FAppPkg_PackageParser.cpp

index 94651e0..93005ae 100755 (executable)
@@ -518,15 +518,18 @@ _PackageParser::Parse(const String& packagepath)
        bool res = true;
        FileUnzipper unzipper;
 
+       Directory::Remove("/tmp/__manifest/", true);
+       Directory::Create("/tmp/__manifest/", false);
+
        result r = unzipper.Construct(packagepath);
        SysTryReturn(NID_APP, !IsFailed(r), false, E_SYSTEM, "unzipper.Construct() failed.");
 
-       r = unzipper.UnzipTo(L"/tmp", L"info/manifest.xml");
+       r = unzipper.UnzipTo(L"/tmp/__manifest", L"info/manifest.xml");
        SysTryReturn(NID_APP, !IsFailed(r), false, E_SYSTEM, "unzipper.UnzipTo() failed.");
 
-       res = ParseNormalizedDocument("/tmp/info/manifest.xml");
+       res = ParseNormalizedDocument("/tmp/__manifest/info/manifest.xml");
 
-       Directory::Remove("/tmp/info", true);
+       Directory::Remove("/tmp/__manifest/", true);
 
        return res;
 }
@@ -814,7 +817,9 @@ _PackageParser::OnIconValue(const char* pCharacters)
        if (strcasecmp(pSection, "MainMenu") == 0)
        {
                FileUnzipper unzipper;
-               String tmp(L"/tmp/");
+               String tmp(L"/tmp/__icon/");
+               Directory::Remove(tmp, true);
+               Directory::Create(tmp, false);
 
                result r = unzipper.Construct(__packagePath);
                SysTryReturn(NID_APP, !IsFailed(r), false, E_SYSTEM, "unzipper.Construct() failed.");