Remove not supported update script 65/150265/1
authorSunmin Lee <sunm.lee@samsung.com>
Fri, 8 Sep 2017 04:27:59 +0000 (13:27 +0900)
committerSemun Lee <semun.lee@samsung.com>
Fri, 15 Sep 2017 02:47:35 +0000 (02:47 +0000)
RW update script for Tizen 2.4 (to 3.0) is not necessary in Tizen 4.0.
(Tizen 4.0 does not support upgrade from Tizen 2.4)
Remove this file in terms of clearing the redundancy.

Change-Id: I88bdbf3b0097a65dec3b0c3a10abce94a48f351d
(cherry picked from commit b526e186a74116a703cbc2c70233a5573153d1bb)

packaging/librua.spec
scripts/503.rua_upgrade.sh [deleted file]

index eb3f76a..e66701e 100644 (file)
@@ -15,8 +15,6 @@ BuildRequires:  pkgconfig(libtzplatform-config)
 BuildRequires:  pkgconfig(gio-2.0)
 BuildRequires:  pkgconfig(glib-2.0)
 
-%define upgrade_script_path /usr/share/upgrade/scripts
-
 %description
 Recently used application library
 
@@ -49,9 +47,6 @@ make %{?_smp_mflags}
 %install
 %make_install
 
-mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/503.rua_upgrade.sh %{buildroot}%{upgrade_script_path}
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
@@ -61,7 +56,6 @@ cp -f scripts/503.rua_upgrade.sh %{buildroot}%{upgrade_script_path}
 %defattr(-,root,root,-)
 %{_libdir}/librua.so.*
 %license LICENSE
-%{upgrade_script_path}/503.rua_upgrade.sh
 
 %files devel
 %manifest %{name}.manifest
diff --git a/scripts/503.rua_upgrade.sh b/scripts/503.rua_upgrade.sh
deleted file mode 100644 (file)
index 73e3c8b..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-#------------------------------------------#
-# rua upgrade (2.4 -> 3.0)                #
-#------------------------------------------#
-
-# Macro
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-DB_DIR=/opt/dbspace
-DB_RUA=$DB_DIR/.rua.db
-DB_RUA_STAT=$DB_DIR/.rua_stat.db
-
-USR_DB_DIR=/opt/usr/home/owner/.applications/dbspace
-UPGRADE_DB_RUA_STAT=$USR_DB_DIR/.rua_stat.db
-
-# Delete DB & DB journal
-rm -rf $DB_RUA
-rm -rf $DB_RUA-journal
-
-# Copy stat DB & DB journal
-cp -rf $DB_RUA_STAT $USR_DB_DIR
-cp -rf $DB_RUA_STAT-journal $USR_DB_DIR
-
-rm -rf $DB_RUA_STAT
-rm -rf $DB_RUA_STAT-journal
-
-chmod 644 $UPGRADE_DB_RUA_STAT
-chmod 644 $UPGRADE_DB_RUA_STAT-journal
-
-chsmack -a User::Home $UPGRADE_DB_RUA_STAT
-chsmack -a User::Home $UPGRADE_DB_RUA_STAT-journal
-
-chown app_fw:app_fw $UPGRADE_DB_RUA_STAT
-chown app_fw:app_fw $UPGRADE_DB_RUA_STAT-journal
\ No newline at end of file