diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-03-30 01:16:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-05 23:22:12 +0100 |
commit | 4bd647af8344ee91ce7f495d50b0d9211faf60db (patch) | |
tree | 4cbf9ec1a72e7d7dd7ee4559fe0e33eea489c290 /scripts/postinst-intercepts | |
parent | 934dc65f0605f75b349245630046885d88c67a8c (diff) | |
download | poky-4bd647af8344ee91ce7f495d50b0d9211faf60db.tar.gz |
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>
Diffstat (limited to 'scripts/postinst-intercepts')
-rw-r--r-- | scripts/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 92092f2144..fc3f9d0d6c 100644 --- a/scripts/postinst-intercepts/update_gio_module_cache +++ b/scripts/postinst-intercepts/update_gio_module_cache | |||
@@ -3,7 +3,7 @@ | |||
3 | set -e | 3 | set -e |
4 | 4 | ||
5 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ | 5 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ |
6 | $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/ | 6 | $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/ |
7 | |||
8 | chown root:root $D${libdir}/gio/modules/giomodule.cache | ||
9 | 7 | ||
8 | [ ! -e $D${libdir}/gio/modules/giomodule.cache ] || | ||
9 | chown root:root $D${libdir}/gio/modules/giomodule.cache | ||