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

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