Update the app database after installation and removal. TIVI-803. 31/3531/1
authorOssama Othman <ossama.othman@intel.com>
Tue, 14 May 2013 22:33:21 +0000 (15:33 -0700)
committerOssama Othman <ossama.othman@intel.com>
Tue, 14 May 2013 22:33:21 +0000 (15:33 -0700)
Change-Id: I9b93c23a16ffc96726135b14428162036bda37c9
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
packaging/ico-uxf-HomeScreen.spec

index e237918..fcab760 100644 (file)
@@ -137,7 +137,11 @@ ln -sf %{_sysconfdir}/rc.d/init.d/ico_weston %{buildroot}%{ico_sysvlinkdir}/S91i
 # script in /etc/rc.d/rc3.d.  Store it for later restoration after
 # uninstallation of this package.
 mkdir -p %{ico_packagestatedir}
-mv %{ico_sysvlinkdir}/S??weston %{ico_packagestatedir}
+mv -f %{ico_sysvlinkdir}/S??weston %{ico_packagestatedir}
+
+# Update the app database.
+rm -f /opt/dbspace/.app_info.db*
+ail_initdb
 
 %postun
 # Restore the link to the Weston boot script.
@@ -145,6 +149,11 @@ mv %{ico_packagestatedir}/S??weston %{ico_sysvlinkdir}
 rmdir %{ico_packagestatedir}
 # TODO: Should we remove the rpm-state dir, too?
 
+# Update the app database.
+rm -f /opt/dbspace/.app_info.db*
+ail_initdb
+
+
 %files
 %defattr(-,root,root,-)
 %{PREFIX}/org.tizen.ico.homescreen