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

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