diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-10-09 14:06:06 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-10-09 14:06:06 +0300 |
commit | d709195c3a51522629443cddea042513f47c5ad3 (patch) | |
tree | 2d0f91f22a13179bb56331ae9f7d13ed38159cee /rpmio/rpmlua.c | |
parent | 46921b2334ddde2cad8f3546c6f9b6124adbb3a2 (diff) | |
download | librpm-tizen-d709195c3a51522629443cddea042513f47c5ad3.tar.gz librpm-tizen-d709195c3a51522629443cddea042513f47c5ad3.tar.bz2 librpm-tizen-d709195c3a51522629443cddea042513f47c5ad3.zip |
Replace all rpmError() uses with rpmlog()
Diffstat (limited to 'rpmio/rpmlua.c')
-rw-r--r-- | rpmio/rpmlua.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c index 342c2cda3..bda4be324 100644 --- a/rpmio/rpmlua.c +++ b/rpmio/rpmlua.c @@ -446,7 +446,7 @@ int rpmluaCheckScript(rpmlua _lua, const char *script, const char *name) if (name == NULL) name = "<lua>"; if (luaL_loadbuffer(L, script, strlen(script), name) != 0) { - rpmError(RPMERR_SCRIPT, + rpmlog(RPMERR_SCRIPT, _("invalid syntax in lua scriptlet: %s\n"), lua_tostring(L, -1)); ret = -1; @@ -463,12 +463,12 @@ int rpmluaRunScript(rpmlua _lua, const char *script, const char *name) if (name == NULL) name = "<lua>"; if (luaL_loadbuffer(L, script, strlen(script), name) != 0) { - rpmError(RPMERR_SCRIPT, _("invalid syntax in lua script: %s\n"), + rpmlog(RPMERR_SCRIPT, _("invalid syntax in lua script: %s\n"), lua_tostring(L, -1)); lua_pop(L, 1); ret = -1; } else if (lua_pcall(L, 0, 0, 0) != 0) { - rpmError(RPMERR_SCRIPT, _("lua script failed: %s\n"), + rpmlog(RPMERR_SCRIPT, _("lua script failed: %s\n"), lua_tostring(L, -1)); lua_pop(L, 1); ret = -1; @@ -482,12 +482,12 @@ int rpmluaRunScriptFile(rpmlua _lua, const char *filename) lua_State *L = lua->L; int ret = 0; if (luaL_loadfile(L, filename) != 0) { - rpmError(RPMERR_SCRIPT, _("invalid syntax in lua file: %s\n"), + rpmlog(RPMERR_SCRIPT, _("invalid syntax in lua file: %s\n"), lua_tostring(L, -1)); lua_pop(L, 1); ret = -1; } else if (lua_pcall(L, 0, 0, 0) != 0) { - rpmError(RPMERR_SCRIPT, _("lua script failed: %s\n"), + rpmlog(RPMERR_SCRIPT, _("lua script failed: %s\n"), lua_tostring(L, -1)); lua_pop(L, 1); ret = -1; @@ -617,7 +617,7 @@ static int rpmluaHookWrapper(rpmhookArgs args, void *data) } } if (lua_pcall(L, 1, 1, 0) != 0) { - rpmError(RPMERR_SCRIPT, _("lua hook failed: %s\n"), + rpmlog(RPMERR_SCRIPT, _("lua hook failed: %s\n"), lua_tostring(L, -1)); lua_pop(L, 1); } else { |