From 303e5f444e1ee06d30f9c1f56f928e4918c73dc3 Mon Sep 17 00:00:00 2001 From: Sunmin Lee Date: Fri, 8 Sep 2017 13:27:59 +0900 Subject: [PATCH] Remove not supported update script 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 | 6 ------ scripts/503.rua_upgrade.sh | 35 ----------------------------------- 2 files changed, 41 deletions(-) delete mode 100644 scripts/503.rua_upgrade.sh diff --git a/packaging/librua.spec b/packaging/librua.spec index eb3f76a..e66701e 100644 --- a/packaging/librua.spec +++ b/packaging/librua.spec @@ -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 index 73e3c8b..0000000 --- a/scripts/503.rua_upgrade.sh +++ /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 -- 2.7.4