summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2017-10-21 15:21:15 +0200
committerAvatar Heiko Becker <heirecka@exherbo.org> 2017-10-21 15:27:06 +0200
commite98dda8893366d517a2f695acda7b5b8a5ef98ba (patch)
treeb940105be586b89c90f4273d0e998209481a49f4
parenta4aed9abbf9aa7b37c6e31917a052fef0055f501 (diff)
downloadmedia-master.tar.gz
media-master.tar.xz
vlc: Only run vlc-cache-gen for native buildsHEADmaster
-rw-r--r--packages/media/vlc/vlc.exlib8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/media/vlc/vlc.exlib b/packages/media/vlc/vlc.exlib
index 3bdda79..58a88fb 100644
--- a/packages/media/vlc/vlc.exlib
+++ b/packages/media/vlc/vlc.exlib
@@ -496,9 +496,11 @@ vlc_src_install() {
vlc_pkg_postinst() {
if ever at_least 3.0.0_p20171016; then
- # refresh the plugin cache after installation
- edo /usr/$(exhost --target)/lib/vlc/vlc-cache-gen \
- /usr/$(exhost --target)/lib/vlc/plugins
+ if $(exhost --is-native -q ) ; then
+ # refresh the plugin cache after installation
+ edo /usr/$(exhost --target)/lib/vlc/vlc-cache-gen \
+ /usr/$(exhost --target)/lib/vlc/plugins
+ fi
fi
freedesktop-desktop_pkg_postinst