Remove old update script 52/148252/1
authorSunmin Lee <sunm.lee@samsung.com>
Thu, 7 Sep 2017 07:50:14 +0000 (16:50 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Thu, 7 Sep 2017 07:52:44 +0000 (16:52 +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: If1340a806b5e85d102c7549eda911bad3d2c9f2d

packaging/mtp-responder.spec
scripts/500.mtp-responder-upgrade.sh [deleted file]

index 5edf60a..1d07f73 100755 (executable)
@@ -24,8 +24,6 @@ Buildrequires: pkgconfig(storage)
 BuildRequires: pkgconfig(libsystemd-daemon)
 Requires(post): /usr/bin/vconftool
 
-%define upgrade_script_path /usr/share/upgrade/scripts
-
 %description
 This package includes a daemon which processes Media Transper Protocol(MTP) commands as MTP responder role.
 
@@ -47,9 +45,6 @@ make %{?jobs:-j%jobs}
 mkdir -p %{buildroot}/%{_prefix}/lib/udev/rules.d
 cp packaging/99-mtp-responder.rules %{buildroot}/%{_prefix}/lib/udev/rules.d/99-mtp-responder.rules
 
-mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/500.%{name}-upgrade.sh %{buildroot}%{upgrade_script_path}
-
 install -D -m 0644 mtp-responder.service %{buildroot}/%{_unitdir}/mtp-responder.service
 
 %post
@@ -64,4 +59,3 @@ ln -sf %{_unitdir}/mtp-responder.service %{_sysconfdir}/systemd/default-extra-de
 %{_unitdir}/mtp-responder.service
 %{_prefix}/lib/udev/rules.d/99-mtp-responder.rules
 /opt/var/lib/misc/mtp-responder.conf
-%{upgrade_script_path}/500.%{name}-upgrade.sh
diff --git a/scripts/500.mtp-responder-upgrade.sh b/scripts/500.mtp-responder-upgrade.sh
deleted file mode 100755 (executable)
index 9f1fd15..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-#----------------------------------------------#
-# mtp-responder patch for upgrade (2.4 -> 3.0) #
-#----------------------------------------------#
-
-# Macro
-MTP_RESPONDER_CONF=/opt/var/lib/misc/mtp-responder.conf
-
-chown owner:users $MTP_RESPONDER_CONF
-chsmack -a "_" $MTP_RESPONDER_CONF