diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-02-28 12:18:10 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-02-28 12:18:10 +0200 |
commit | 9defc922e971d98203890f1557ab951ec94f2a3f (patch) | |
tree | d9d470335733e23e18654faed6450f6f5fe25782 /build/parseSpec.c | |
parent | 4e207bfdfce434a6484babc14fe86aeadeec5329 (diff) | |
download | librpm-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.c | 2 |
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; |