Move db file to /usr/dbspace 37/46337/1 accepted/tizen/mobile/20150820.043655 accepted/tizen/tv/20150820.043708 accepted/tizen/wearable/20150820.043725 submit/tizen/20150820.023425
authorKyuho Jo <kyuho.jo@samsung.com>
Wed, 19 Aug 2015 08:48:59 +0000 (17:48 +0900)
committerKyuho Jo <kyuho.jo@samsung.com>
Wed, 19 Aug 2015 08:48:59 +0000 (17:48 +0900)
Change-Id: Ib69c50b21cd989809c4921c2979323ce7bd1c249
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
lib/src/main.c
packaging/libshortcut.spec
pkgmgr_shortcut/src/service_register.c
test_db_builder.sh

index 16594d9..bb23bf3 100755 (executable)
@@ -63,7 +63,7 @@ static struct info {
        .server_fd = -1,
        .client_fd = -1,
        .socket_file = "/tmp/.shortcut.service",
-       .dbfile = "/opt/dbspace/.shortcut_service.db",
+       .dbfile = "/usr/dbspace/.shortcut_service.db",
        .handle = NULL,
        .initialized = 0,
        .db_opened = 0,
index 539a743..baafc53 100755 (executable)
@@ -53,9 +53,9 @@ make %{?jobs:-j%jobs}
 %install
 rm -rf %{buildroot}
 %make_install
-mkdir -p %{buildroot}/opt/dbspace
-touch %{buildroot}/opt/dbspace/.shortcut_service.db
-touch %{buildroot}/opt/dbspace/.shortcut_service.db-journal
+mkdir -p %{buildroot}/usr/dbspace
+touch %{buildroot}/usr/dbspace/.shortcut_service.db
+touch %{buildroot}/usr/dbspace/.shortcut_service.db-journal
 
 %post -n %{name} -p /sbin/ldconfig
 %postun -n %{name} -p /sbin/ldconfig
@@ -66,8 +66,8 @@ touch %{buildroot}/opt/dbspace/.shortcut_service.db-journal
 %{_libdir}/*.so*
 %{_prefix}/etc/package-manager/parserlib/*
 %{_datarootdir}/license/*
-%attr(640,root,app) /opt/dbspace/.shortcut_service.db
-%attr(640,root,app) /opt/dbspace/.shortcut_service.db-journal
+%attr(640,root,app) /usr/dbspace/.shortcut_service.db
+%attr(640,root,app) /usr/dbspace/.shortcut_service.db-journal
 
 %files devel
 %manifest %{name}.manifest
index 5f2ecb9..190e351 100755 (executable)
@@ -69,7 +69,7 @@ static struct {
        const char *dbfile;
        sqlite3 *handle;
 } s_info = {
-       .dbfile = "/opt/dbspace/.shortcut_service.db",
+       .dbfile = "/usr/dbspace/.shortcut_service.db",
        .handle = NULL,
 };
 
index 73deff7..2719bc7 100755 (executable)
@@ -16,7 +16,7 @@
 # *
 #*/
 
-DBFILE="/opt/dbspace/.shortcut_service.db"
+DBFILE="/usr/dbspace/.shortcut_service.db"
 
 APPID=(
 "org.tizen.facebook"