[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5483/8267] update_gio_module_cache: Do not chown a non-existing file
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 5483/8267] update_gio_module_cache: Do not chown a non-existing file
- Date: Sun, 17 Dec 2017 03:30:12 +0000 (UTC)
commit 4bd647af8344ee91ce7f495d50b0d9211faf60db
Author: Peter Kjellerstedt <peter kjellerstedt axis com>
Date: Thu Mar 30 01:16:06 2017 +0200
update_gio_module_cache: Do not chown a non-existing file
Only change the ownership of ${libdir}/gio/modules/giomodule.cache if
it exists.
(From OE-Core rev: df2e1a8fbadffac0f1781a0d07e050356a007327)
Signed-off-by: Peter Kjellerstedt <peter kjellerstedt axis com>
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
.../postinst-intercepts/update_gio_module_cache | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/scripts/postinst-intercepts/update_gio_module_cache
b/scripts/postinst-intercepts/update_gio_module_cache
index 92092f2..fc3f9d0 100644
--- a/scripts/postinst-intercepts/update_gio_module_cache
+++ b/scripts/postinst-intercepts/update_gio_module_cache
@@ -3,7 +3,7 @@
set -e
PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \
- $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/
-
-chown root:root $D${libdir}/gio/modules/giomodule.cache
+ $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/
+[ ! -e $D${libdir}/gio/modules/giomodule.cache ] ||
+ chown root:root $D${libdir}/gio/modules/giomodule.cache
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]