Blame SOURCES/0001-meson-Use-python2-for-postinstall.patch

103a80
From 268b8d7343591b9c1cb379f6e65f061a4da461e8 Mon Sep 17 00:00:00 2001
103a80
From: Carlos Soriano <csoriano@gnome.org>
103a80
Date: Fri, 8 Jun 2018 19:53:02 +0200
103a80
Subject: [PATCH] meson: Use python2 for postinstall
103a80
103a80
RHEL 7 doesn't have python3...
103a80
---
103a80
 build-aux/meson/postinstall.py | 8 ++++----
103a80
 1 file changed, 4 insertions(+), 4 deletions(-)
103a80
103a80
diff --git a/build-aux/meson/postinstall.py b/build-aux/meson/postinstall.py
103a80
index 81afb18b7..04c6464d7 100755
103a80
--- a/build-aux/meson/postinstall.py
103a80
+++ b/build-aux/meson/postinstall.py
103a80
@@ -1,4 +1,4 @@
103a80
-#!/usr/bin/env python3
103a80
+#!/usr/bin/env python2
103a80
 
103a80
 import os
103a80
 import subprocess
103a80
@@ -8,19 +8,19 @@ datadir = os.path.join(prefix, 'share')
103a80
 
103a80
 # Packaging tools define DESTDIR and this isn't needed for them
103a80
 if 'DESTDIR' not in os.environ:
103a80
-    print('Updating icon cache...')
103a80
+    print 'Updating icon cache...'
103a80
     icon_cache_dir = os.path.join(datadir, 'icons', 'hicolor')
103a80
     if not os.path.exists(icon_cache_dir):
103a80
         os.makedirs(icon_cache_dir)
103a80
     subprocess.call(['gtk-update-icon-cache', '-qtf', icon_cache_dir])
103a80
 
103a80
-    print('Updating desktop database...')
103a80
+    print 'Updating desktop database...'
103a80
     desktop_database_dir = os.path.join(datadir, 'applications')
103a80
     if not os.path.exists(desktop_database_dir):
103a80
         os.makedirs(desktop_database_dir)
103a80
     subprocess.call(['update-desktop-database', '-q', desktop_database_dir])
103a80
 
103a80
-    print('Compiling GSettings schemas...')
103a80
+    print 'Compiling GSettings schemas...'
103a80
     schemas_dir = os.path.join(datadir, 'glib-2.0', 'schemas')
103a80
     if not os.path.exists(schemas_dir):
103a80
         os.makedirs(schemas_dir)
103a80
-- 
103a80
2.17.1
103a80