Remove not supported update script 71/150271/2
authorSunmin Lee <sunm.lee@samsung.com>
Fri, 8 Sep 2017 04:31:46 +0000 (13:31 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Fri, 15 Sep 2017 02:58:05 +0000 (02:58 +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: I8ae135ee51d8c2fa12cdc4f1fbfe19638475adbd
(cherry picked from commit 0a28835bb8b9c854e97ea69f1e7cff166ec0675b)

packaging/libwidget_service.spec
scripts/504.widget_upgrade.sh [deleted file]

index 8af540e0af859e1bb28fd07029eea2af0940a48c..30961821a61e03ea233015797141a3449520578a 100644 (file)
@@ -29,8 +29,6 @@ BuildRequires: pkgconfig(pkgmgr-installer)
 BuildRequires: pkgconfig(ecore-wayland)
 BuildRequires: pkgconfig(iniparser)
 
-%define upgrade_script_path /usr/share/upgrade/scripts
-
 %if "%{model_build_feature_widget}" == "0"
 ExclusiveArch:
 %endif
@@ -71,9 +69,6 @@ install -m 0644 .widget.db-journal %{buildroot}%{TZ_SYS_DB}
 install -m 0644 .widget.db %{buildroot}%{_sysconfdir}/skel/.applications/dbspace
 install -m 0644 .widget.db-journal %{buildroot}%{_sysconfdir}/skel/.applications/dbspace
 
-mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/504.widget_upgrade.sh %{buildroot}%{upgrade_script_path}
-
 %post -n %{name}
 /sbin/ldconfig
 chsmack -a "User::Home" %{TZ_SYS_DB}/.widget.db
@@ -114,7 +109,6 @@ fi
 %{TZ_SYS_DB}/.widget.db-journal
 %{_bindir}/widget_test
 %{_datarootdir}/widget_service/*
-%{upgrade_script_path}/504.widget_upgrade.sh
 
 %files devel
 %manifest %{name}.manifest
diff --git a/scripts/504.widget_upgrade.sh b/scripts/504.widget_upgrade.sh
deleted file mode 100755 (executable)
index 070e144..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-#------------------------------------------#
-# widget upgrade (2.4 -> 3.0)             #
-#------------------------------------------#
-
-# Macro
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-UPGRADE_DB_DIR=/etc/skel/.applications/dbspace
-DB_DIR=/opt/dbspace
-
-UPGRADE_DB_WIDGET=$UPGRADE_DB_DIR/.widget.db
-DB_WIDGET=$DB_DIR/.widget.db
-
-# Delete DB
-rm -rf $DB_WIDGET
-rm -rf $DB_WIDGET-journal
-
-# Copy DB
-cp -rf $UPGRADE_DB_WIDGET $DB_WIDGET
-cp -rf $UPGRADE_DB_WIDGET-journal $DB_WIDGET-journal
-
-chmod 644 $DB_WIDGET
-chmod 644 $DB_WIDGET-journal
-
-chsmack -a User::Home $DB_WIDGET
-chsmack -a User::Home $DB_WIDGET-journal