[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:40:06 CET 2017


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

x2go pushed a commit to branch master
in repository x2goserver.

commit 7c1b76084e9d7c985c45de4fe7ab668b5480535e
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...
    
    Cherry-picked from release/4.0.1.x branch.
---
 debian/changelog | 1 +
 x2goserver.spec  | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5c53968..07ac322 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -274,6 +274,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 adcd85f..9ecba91 100644
--- a/x2goserver.spec
+++ b/x2goserver.spec
@@ -658,6 +658,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
@@ -677,6 +680,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