Revert "Add upgrade script for version 30005" 26/210526/2
authorilho kim <ilho159.kim@samsung.com>
Mon, 22 Jul 2019 05:44:36 +0000 (05:44 +0000)
committerIlho Kim <ilho159.kim@samsung.com>
Mon, 22 Jul 2019 05:45:55 +0000 (14:45 +0900)
This reverts commit f2268b9e4993ee8b9688858bc0c744b2056a7322.

Change-Id: Id494bb8ffb1b081fda29da1426515de1e1b1df12

CMakeLists.txt
data/updates/upgrade_to_30005.sh.in [deleted file]
packaging/pkgmgr-tool.spec

index a9ab2a8..f688adc 100644 (file)
@@ -92,5 +92,3 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/updates/upgrade_to_30003.sh.in u
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/upgrade_to_30003.sh DESTINATION /etc/package-manager/updates/)
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/updates/upgrade_to_30004.sh.in upgrade_to_30004.sh $ONLY)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/upgrade_to_30004.sh DESTINATION /etc/package-manager/updates/)
-CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/data/updates/upgrade_to_30005.sh.in upgrade_to_30005.sh $ONLY)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/upgrade_to_30005.sh DESTINATION /etc/package-manager/updates/)
diff --git a/data/updates/upgrade_to_30005.sh.in b/data/updates/upgrade_to_30005.sh.in
deleted file mode 100644 (file)
index 9814028..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-source /etc/tizen-platform.conf
-
-PARSER_DB_NAME=.pkgmgr_parser.db
-CERT_DB_NAME=.pkgmgr_cert.db
-PARSER_DB_PATH=$TZ_SYS_DB/$PARSER_DB_NAME
-CERT_DB_PATH=$TZ_SYS_DB/$CERT_DB_NAME
-
-function migrate_db() {
-       local dbpath=$1
-       echo -e "PRAGMA journal_mode=WAL;" | sqlite3 $dbpath
-       echo "PRAGMA user_version=30005;" | sqlite3 $dbpath
-
-       touch "$dbpath-shm"
-       chown app_fw:app_fw "$dbpath-shm"
-       chsmack -a User::Home "$dbpath-shm"
-       touch "$dbpath-wal"
-       chown app_fw:app_fw "$dbpath-wal"
-       chsmack -a User::Home "$dbpath-wal"
-}
-
-function migrate_user_db() {
-       #get each user db path and call migrate_parser_db for each of it
-
-       find $TZ_SYS_DB/user -name $PARSER_DB_NAME | while read DBPATH
-       do
-               migrate_db $DBPATH
-       done
-}
-
-migrate_db $PARSER_DB_PATH
-migrate_user_db
-migrate_db $CERT_DB_PATH
\ No newline at end of file
index af614e7..7d8396e 100644 (file)
@@ -76,7 +76,6 @@ update-mime-database %{_datadir}/mime
 %attr(0700,root,root) /etc/package-manager/updates/upgrade_to_30002.sh
 %attr(0700,root,root) /etc/package-manager/updates/upgrade_to_30003.sh
 %attr(0700,root,root) /etc/package-manager/updates/upgrade_to_30004.sh
-%attr(0700,root,root) /etc/package-manager/updates/upgrade_to_30005.sh
 %attr(0700,root,root) /usr/share/upgrade/scripts/701.app2sd.patch.sh
 %attr(0700,root,root) %{_sysconfdir}/opt/upgrade/pkgmgr.patch.sh
 %attr(0700,root,root) /usr/share/fixed_multiuser/scripts/pkgmgr-clear-skel.sh