From 7e796f6f52b175097914a0b7bfd5d104b0d60ade Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 16 May 2007 16:16:45 +0300 Subject: Fix building without Lua support. Patch from OpenSuSE. --- build/parseScript.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/parseScript.c b/build/parseScript.c index 5740cccdc..e8bbb7717 100644 --- a/build/parseScript.c +++ b/build/parseScript.c @@ -283,6 +283,7 @@ int parseScript(Spec spec, int parsePart) stripTrailingBlanksStringBuf(sb); p = getStringBuf(sb); +#ifdef WITH_LUA if (!strcmp(progArgv[0], "")) { rpmlua lua = NULL; /* Global state. */ if (rpmluaCheckScript(lua, p, partname) != RPMRC_OK) { @@ -291,7 +292,9 @@ int parseScript(Spec spec, int parsePart) } (void) rpmlibNeedsFeature(pkg->header, "BuiltinLuaScripts", "4.2.2-1"); - } else if (progArgv[0][0] == '<') { + } else +#endif + if (progArgv[0][0] == '<') { rpmError(RPMERR_BADSPEC, _("line %d: unsupported internal script: %s\n"), spec->lineNum, progArgv[0]); -- cgit v1.2.3