Author: Konstantin Dmitriev <[email protected]>
Date:   Thu Jun  9 11:28:24 2011 +0700

Fix issue when update-desktop-database is not found.
http://synfig.org/forums/viewtopic.php?p=11180#p11180

---

 autobuild/synfigstudio-linux-build.sh |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/autobuild/synfigstudio-linux-build.sh 
b/autobuild/synfigstudio-linux-build.sh
index d0f949c..dcfc36c 100755
--- a/autobuild/synfigstudio-linux-build.sh
+++ b/autobuild/synfigstudio-linux-build.sh
@@ -692,13 +692,17 @@ rm -rf \$RPM_BUILD_ROOT
 if [ -x /usr/bin/update-mime-database ]; then
   update-mime-database /usr/share/mime
 fi
-update-desktop-database
+if [ -x /usr/bin/update-desktop-database ]; then
+  update-desktop-database
+fi
 
 %postun
 if [ -x /usr/bin/update-mime-database ]; then
   update-mime-database /usr/share/mime
 fi
-update-desktop-database
+if [ -x /usr/bin/update-desktop-database ]; then
+  update-desktop-database
+fi
 
 %files
 %defattr(-,root,root,-)


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to