[X2Go-Commits] [x2goserver] 03/05: x2goserver.spec: work around a bug in SuSE's mime DB update script...

git-admin at x2go.org git-admin at x2go.org
Tue Mar 7 04:39:42 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch release/4.0.1.x
in repository x2goserver.

commit 22f2097b2a6adb7357adf9d974daab13122a7798
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Tue Mar 7 04:32:27 2017 +0100

    x2goserver.spec: work around a bug in SuSE's mime DB update script...
---
 debian/changelog | 1 +
 x2goserver.spec  | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 53911e4..a24cd26 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -35,6 +35,7 @@ x2goserver (4.0.1.21-0x2go1) UNRELEASED; urgency=medium
       it for x2goserver-fmbindings.
     - Make sure that we don't go into branches just because a macro is not
       defined on our platform.
+    - Work around a bug in SuSE's mime DB update script...
   * debian/po:
     - Tiny fixup on author name.
   * debian/control:
diff --git a/x2goserver.spec b/x2goserver.spec
index debb090..281cc08 100644
--- a/x2goserver.spec
+++ b/x2goserver.spec
@@ -515,6 +515,9 @@ fi
 
 %post fmbindings
 %if 0%{?suse_version} >= 1140
+# Bug in SuSE's mime DB update script, work around it...
+mkdir -p "/var/cache/gio-2.0"
+
 %mime_database_post
 %desktop_database_post
 # We need the "weird" foo && foo < ... structure, because we only want to check the value
@@ -534,6 +537,8 @@ fi
 %postun fmbindings
 if [ $1 -eq 0 ] ; then
 %if 0%{?suse_version} >= 1140
+        mkdir -p "/var/cache/gio-2.0"
+
         %mime_database_postun
         %desktop_database_postun
 %elif 0%{?suse_version} || { 0%{?fedora} && 0%{?fedora} < 24 } || { 0%{?rhel} && 0%{?rhel} < 8 }

--
Alioth's /srv/git/code.x2go.org/x2goserver.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list