Remove not supported update script 08/148008/1
authorSunmin Lee <sunm.lee@samsung.com>
Wed, 6 Sep 2017 07:04:10 +0000 (16:04 +0900)
committertaesub kim <taesub.kim@samsung.com>
Wed, 6 Sep 2017 08:55:44 +0000 (17:55 +0900)
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: I0ce9b8ccb0d9a0720bbe7588f97da7fe8b0ce522

packaging/connman.spec
scripts/500.connman_upgrade.sh [deleted file]

index 84f0ed7..b3111da 100755 (executable)
@@ -43,9 +43,6 @@ Provides:       %{name}-profile_common = %{version}-%{release}
 Provides:       %{name}-profile_mobile = %{version}-%{release}
 Provides:       %{name}-profile_wearable = %{version}-%{release}
 
-%define upgrade_script_filename 500.connman_upgrade.sh
-%define upgrade_script_path /usr/share/upgrade/scripts
-
 %description
 Connection Manager provides a daemon for managing Internet connections
 within embedded devices running the Linux operating system.
@@ -224,10 +221,6 @@ cp src/connman.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/
 cp vpn/vpn-dbus.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf
 %endif
 
-#OS Upgrade
-mkdir -p %{buildroot}%{upgrade_script_path}
-cp -f scripts/%{upgrade_script_filename} %{buildroot}%{upgrade_script_path}
-
 %post
 #chsmack -a 'System' /%{_localstatedir}/lib/connman
 #chsmack -a 'System' /%{_localstatedir}/lib/connman/settings
@@ -261,7 +254,6 @@ systemctl daemon-reload
 %attr(644,root,root) %{_libdir}/systemd/system/sockets.target.wants/connman.socket
 %endif
 %license COPYING
-%{upgrade_script_path}/%{upgrade_script_filename}
 
 %files test
 %manifest connman.manifest
diff --git a/scripts/500.connman_upgrade.sh b/scripts/500.connman_upgrade.sh
deleted file mode 100755 (executable)
index 83f222b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-#-----------------------------------------------#
-# connman patch script for upgrade (2.4 -> 3.0) #
-#-----------------------------------------------#
-
-#/%{_localstatedir} = /opt/var
-
-chsmack -a 'System' /opt/var/lib/connman
-chsmack -a 'System' /opt/var/lib/connman/settings
-