[iagno/gitlab-ci] Meson: fix post install
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno/gitlab-ci] Meson: fix post install
- Date: Mon, 4 Feb 2019 23:20:48 +0000 (UTC)
commit d5ef9c7e3b31e3209f2774f4225aac49b6bc62b6
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Mon Feb 4 23:20:39 2019 +0000
Meson: fix post install
There's no need to create directories on the post install script as they are created during ninja install.
build-aux/meson_post_install.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/build-aux/meson_post_install.py b/build-aux/meson_post_install.py
index ae920fc..98fbed0 100644
--- a/build-aux/meson_post_install.py
+++ b/build-aux/meson_post_install.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
-from os import environ, path
+from os import environ
from subprocess import call
import sys
@@ -13,16 +13,10 @@ appsdir = sys.argv[3]
if not environ.get('DESTDIR', ''):
print('Updating icon cache...')
- if not os.path.exists(icon_cache_dir):
- os.makedirs(icon_cache_dir)
call(['gtk-update-icon-cache', '-qtf', icon_cache_dir])
print("Compiling new schemas")
- if not os.path.exists(schemadir):
- os.makedirs(schemadir)
call(["glib-compile-schemas", schemadir])
print("Updating desktop database")
- if not os.path.exists(appsdir):
- os.makedirs(appsdir)
call(["update-desktop-database", appsdir])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]