Remove old update script 47/148247/1
authorSunmin Lee <sunm.lee@samsung.com>
Thu, 7 Sep 2017 07:10:05 +0000 (16:10 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Thu, 7 Sep 2017 07:41:08 +0000 (16:41 +0900)
RW update script for Tizen 2.4 (to 3.0) is not necessary in Tizen 4.0.
Remove this file to avoid being executed during Tizen 4.0 update.

Change-Id: Ia6e49878acd6a9e35e4865411b712b8a0d103fd9

packaging/500.media-controller.upgrade.sh [deleted file]
packaging/capi-media-controller.spec

diff --git a/packaging/500.media-controller.upgrade.sh b/packaging/500.media-controller.upgrade.sh
deleted file mode 100644 (file)
index 23eb3ca..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-#-----------------------------------------------#
-# media-controller patch for upgrade (2.4 -> 3.0) #
-#-------------------------------------------------#
-
-# Macro
-DB_DIR_24=/opt/usr/dbspace
-DB_DIR_30=/opt/usr/home/owner/.applications/dbspace
-
-DB_FILE_24=$DB_DIR_24/.media_controller.db
-DB_FILE_30=$DB_DIR_30/.media_controller.db
-
-if [ -e $DB_FILE_24 ]
-then
-# Move
-mv $DB_FILE_24 $DB_FILE_30
-mv $DB_FILE_24-journal $DB_FILE_30-journal
-
-# Set permission
-chmod 0644 $DB_FILE_30
-chmod 0644 $DB_FILE_30-journal
-chown -R multimedia_fw:multimedia_fw $DB_FILE_30
-chown -R multimedia_fw:multimedia_fw $DB_FILE_30-journal
-chsmack -a 'User::Home' $DB_FILE_30
-chsmack -a 'User::Home' $DB_FILE_30-journal
-fi
index ba8ada2ac27cf20b80790efd7bf52f4fbb7022d6..e2248000b22f1445cc8471afaccc488189f19de6 100755 (executable)
@@ -7,7 +7,6 @@ License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 Source1:    mediacontroller.service
 Source2:    mediacontroller.socket
-Source5:    500.media-controller.upgrade.sh
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(capi-base-common)
 BuildRequires:  pkgconfig(dlog)
@@ -24,8 +23,6 @@ BuildRequires:  pkgconfig(libtzplatform-config)
 BuildRequires:  pkgconfig(cynara-client)
 BuildRequires:  pkgconfig(cynara-session)
 
-%define upgrade_script_path /usr/share/upgrade/scripts
-
 %description
 This package provides a media controller library in Tizen Native API
 
@@ -69,10 +66,6 @@ install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/mediacontroller.service
 install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/mediacontroller.socket
 ln -s ../mediacontroller.socket %{buildroot}%{_unitdir}/sockets.target.wants/mediacontroller.socket
 
-#OS Upgrade
-mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f %{SOURCE5} %{buildroot}%{upgrade_script_path}
-
 %post
 
 %postun
@@ -90,7 +83,6 @@ cp -f %{SOURCE5} %{buildroot}%{upgrade_script_path}
 %{_unitdir}/mediacontroller.service
 %{_unitdir}/mediacontroller.socket
 %{_unitdir}/sockets.target.wants/mediacontroller.socket
-%{upgrade_script_path}/500.media-controller.upgrade.sh
 %license LICENSE.APLv2.0
 
 %files devel