Add suffix path for manifest and recovery
authorSoyoung Kim <sy037.kim@samsung.com>
Wed, 28 Aug 2013 09:29:43 +0000 (18:29 +0900)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Sat, 31 Aug 2013 08:05:30 +0000 (17:05 +0900)
[Issue#]   N/A
[Problem]  No suffix for the path of manifest.
[Cause]    N/A
[Solution] add path for save manifest of pkgmgr.
             - nomal path : "/opt/share/packages"
             - preload path : "/usr/share/packages"

           add path for checking recovery status
            - "/opt/share/packages/.recovery/wgt"

[SCMRequest] N/A

Change-Id: I560b5341141caff96bedd8f6f52a6112d8f380a1

modules/widget_dao/include/dpl/wrt-dao-ro/global_config.h

index 0eba4e4..ab41158 100644 (file)
@@ -292,6 +292,21 @@ inline const char* GetBackupDatabaseSuffix()
 {
     return ".backup";
 }
+
+inline const char* GetManifestPath()
+{
+    return "/opt/share/packages";
+}
+
+inline const char* GetPreloadManifestPath()
+{
+    return "/usr/share/packages";
+}
+
+inline const char* GetRecoveryStatusPath()
+{
+    return "/usr/share/packages/.recovery/wgt";
+}
 } // namespace GlobalConfig
 } // namespace WrtDB