summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorniemeyer <devnull@localhost>2004-03-24 19:47:11 +0000
committerniemeyer <devnull@localhost>2004-03-24 19:47:11 +0000
commitc096a690b819a14072d9465fe91cfe349a3e9214 (patch)
tree9a5f7550f2500801b95fb036a4ff7e4d8e339f00 /build
parent47d16168ca1f3793a0a0e822763992d3a0356418 (diff)
downloadlibrpm-tizen-c096a690b819a14072d9465fe91cfe349a3e9214.tar.gz
librpm-tizen-c096a690b819a14072d9465fe91cfe349a3e9214.tar.bz2
librpm-tizen-c096a690b819a14072d9465fe91cfe349a3e9214.zip
- Now Lua interface is using a global state.
- /usr/lib/rpm/init.lua is called during intialization. CVS patchset: 7188 CVS date: 2004/03/24 19:47:11
Diffstat (limited to 'build')
-rw-r--r--build/parseScript.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/build/parseScript.c b/build/parseScript.c
index 03634c0bd..64325e07e 100644
--- a/build/parseScript.c
+++ b/build/parseScript.c
@@ -284,13 +284,11 @@ int parseScript(Spec spec, int parsePart)
p = getStringBuf(sb);
if (!strcmp(progArgv[0], "<lua>")) {
- rpmlua lua = rpmluaNew();
+ rpmlua lua = NULL; /* Global state. */
if (rpmluaCheckScript(lua, p, partname) != RPMRC_OK) {
- rpmluaFree(lua);
rc = RPMERR_BADSPEC;
goto exit;
}
- rpmluaFree(lua);
(void) rpmlibNeedsFeature(pkg->header,
"BuiltinLuaScripts", "4.2.2-1");
} else if (progArgv[0][0] == '<') {