summaryrefslogtreecommitdiff
path: root/build/parseSpec.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-02-28 12:18:10 +0200
committerPanu Matilainen <pmatilai@redhat.com>2012-02-28 12:18:10 +0200
commit9defc922e971d98203890f1557ab951ec94f2a3f (patch)
treed9d470335733e23e18654faed6450f6f5fe25782 /build/parseSpec.c
parent4e207bfdfce434a6484babc14fe86aeadeec5329 (diff)
downloadlibrpm-tizen-9defc922e971d98203890f1557ab951ec94f2a3f.tar.gz
librpm-tizen-9defc922e971d98203890f1557ab951ec94f2a3f.tar.bz2
librpm-tizen-9defc922e971d98203890f1557ab951ec94f2a3f.zip
Don't process spec %include in false branch of %if clauses (RhBug:782970)
Diffstat (limited to 'build/parseSpec.c')
-rw-r--r--build/parseSpec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c
index abaf76218..dbaaae362 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -379,7 +379,7 @@ int readLine(rpmSpec spec, int strip)
spec->readStack = spec->readStack->next;
free(rl);
spec->line[0] = '\0';
- } else if (ISMACROWITHARG(s, "%include")) {
+ } else if (spec->readStack->reading && ISMACROWITHARG(s, "%include")) {
char *fileName, *endFileName, *p;
fileName = s+8;