diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-09-16 15:36:43 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-11 17:48:03 +0300 |
commit | eab57121d92d3deb03cde80fc4f986ab4a19cf14 (patch) | |
tree | a189fff44bb246d1c71a22e1f06e309e9a5c1e13 /rpmio/rpmlua.c | |
parent | e3307250cef5efb0c7f27f4bd7451a4bb294adfa (diff) | |
download | librpm-tizen-eab57121d92d3deb03cde80fc4f986ab4a19cf14.tar.gz librpm-tizen-eab57121d92d3deb03cde80fc4f986ab4a19cf14.tar.bz2 librpm-tizen-eab57121d92d3deb03cde80fc4f986ab4a19cf14.zip |
lua: fall through failed lua scripts
Just print a warning. In addition, set Lua output buffer to contain
string "1" for failed scripts.
Change-Id: Id0478b64ac942fe6839f3cd8c9bb75c9b15382b2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'rpmio/rpmlua.c')
-rw-r--r-- | rpmio/rpmlua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c index 8e6841d4e..53c0cf908 100644 --- a/rpmio/rpmlua.c +++ b/rpmio/rpmlua.c @@ -530,7 +530,7 @@ int rpmluaRunScript(rpmlua _lua, const char *script, const char *name) lua_pop(L, 1); ret = -1; } else if (lua_pcall(L, 0, 0, 0) != 0) { - rpmlog(RPMLOG_ERR, _("lua script failed: %s\n"), + rpmlog(RPMLOG_WARNING, _("lua script failed: %s\n"), lua_tostring(L, -1)); lua_pop(L, 1); ret = -1; |