[vlc-devel] commit: LUA: look in $(pkglibdir)/lua ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Feb 14 19:50:23 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 14 20:49:27 2010 +0200| [4e4a43931b4594c53ea293e20de22aeb67d001f6] | committer: Rémi Denis-Courmont 

LUA: look in $(pkglibdir)/lua

This should fix FHS conformance for .luac files

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e4a43931b4594c53ea293e20de22aeb67d001f6
---

 modules/misc/lua/vlc.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/misc/lua/vlc.c b/modules/misc/lua/vlc.c
index e0f1fe2..9ebf988 100644
--- a/modules/misc/lua/vlc.c
+++ b/modules/misc/lua/vlc.c
@@ -178,6 +178,12 @@ int vlclua_dir_list( vlc_object_t *p_this, const char *luadirname,
         free( psz_datapath );
     }
 
+#if !(defined(__APPLE__) || defined(SYS_BEOS) || defined(WIN32))
+    if( likely(asprintf( &ppsz_dir_list[i], "%s"DIR_SEP"lua"DIR_SEP"%s",
+                         config_GetLibDir(), luadirname ) != -1) )
+            i++;
+#endif
+
     ppsz_dir_list[i] = NULL;
     return VLC_SUCCESS;
 }




More information about the vlc-devel mailing list