summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-05-16 16:16:45 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-05-16 16:16:45 +0300
commit7e796f6f52b175097914a0b7bfd5d104b0d60ade (patch)
tree3c60bcdea93fd115ce233ccc3aca02d309b897db /build
parent9909fef073fdf033a6c2a8a8063398ed043797af (diff)
downloadlibrpm-tizen-7e796f6f52b175097914a0b7bfd5d104b0d60ade.tar.gz
librpm-tizen-7e796f6f52b175097914a0b7bfd5d104b0d60ade.tar.bz2
librpm-tizen-7e796f6f52b175097914a0b7bfd5d104b0d60ade.zip
Fix building without Lua support.
Patch from OpenSuSE.
Diffstat (limited to 'build')
-rw-r--r--build/parseScript.c5
1 files changed, 4 insertions, 1 deletions
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], "<lua>")) {
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]);