diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-22 16:44:33 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-22 18:09:23 +0200 |
commit | a8abeef91f0669e726e0b9ab398d56cc38efa3c6 (patch) | |
tree | a56e4f321915145557bf4527c45ec4d62ae78061 /luaext/userconfig.c | |
parent | 43b08986a8aa0464566716f6fe0d510e96cd77bf (diff) | |
download | librpm-tizen-a8abeef91f0669e726e0b9ab398d56cc38efa3c6.tar.gz librpm-tizen-a8abeef91f0669e726e0b9ab398d56cc38efa3c6.tar.bz2 librpm-tizen-a8abeef91f0669e726e0b9ab398d56cc38efa3c6.zip |
Use rpmConfigDir() instead of hardwired value in Lua initialization
- userconfig is actually unused
Diffstat (limited to 'luaext/userconfig.c')
-rw-r--r-- | luaext/userconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/luaext/userconfig.c b/luaext/userconfig.c index 014e32536..458768a05 100644 --- a/luaext/userconfig.c +++ b/luaext/userconfig.c @@ -51,7 +51,7 @@ static void mysaveline (lua_State *L, const char *s) { static int luapath(lua_State *L) { lua_pushstring(L, "LUA_PATH"); - lua_pushstring(L, RPMCONFIGDIR "/lua/?.lua;?.lua"); + lua_pushfstring(L, "%s/%s", rpmConfigDir(), "/lua/?.lua;?.lua"); lua_rawset(L, LUA_GLOBALSINDEX); return 0; } |